Commit Graph

147 Commits

Author SHA1 Message Date
hondacrx a968772bad Core/Movement: MotionMaster reimplementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/426f9f2f92b26fbb68e7cda9290ccbd586c6af4e)
2021-09-29 18:24:37 -04:00
hondacrx 53349a5771 Misc fixes 2021-09-26 14:30:08 -04:00
hondacrx cf79d69487 Core/Movement: use helpers for validation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0b6049fe0bf49a8c21114960cb7a6522f48c8308)
2021-09-26 13:49:13 -04:00
hondacrx 365da29692 Core/SAI: Fixed crashes when SAI targets pets that use sai if not tamed
Port From (https://github.com/TrinityCore/TrinityCore/commit/334b02e1daeac7be31ed3ce855a5ff221add80aa)
2021-09-26 13:14:14 -04:00
hondacrx 569e20ebc1 Core/Misc: movement cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/4793b073eec2af32622ff703911721100730e868)
2021-09-26 12:17:10 -04:00
hondacrx ba423331de Core/SAI: Allow movements for creature using castflag 64 when silenced
Port From (https://github.com/TrinityCore/TrinityCore/commit/c0cb8fc1fe8e2079b9ae0f345e5d4ad2b1bfa730)
2021-09-26 11:40:39 -04:00
hondacrx 3b4a440aa7 Core/SmartAI: Remove PauseMovement on AttackStart
Port From (https://github.com/TrinityCore/TrinityCore/commit/e7f93ca96d4fb8fefa7caeddf244fdca63f6b664)
2021-09-26 11:39:15 -04:00
hondacrx ad1975b277 Core/Movement: Replace old TargetedMovementGenerator into ChaseMovementGenerator and FollowMovementGenerator, full rewrite for both.
Port From (https://github.com/TrinityCore/TrinityCore/commit/14939204955d1a24fe465cdfcbf307daf3ce4f09)
2021-09-26 10:29:27 -04:00
hondacrx 4a61a40fb8 Core/Position: Refactor GetAngle -> GetAbsoluteAngle because code clarity is good.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bc89e1cdb0da10e53cc9fa4a97565c05bb4c052e)
2021-09-23 22:46:22 -04:00
hondacrx 5c4a7511ff Core/Spells: Cleanup spell effects
Port From (https://github.com/TrinityCore/TrinityCore/commit/8a4e1119ac21e2d1112d1717337597fe073e495f)
2021-09-08 17:40:50 -04:00
hondacrx 4c08eebc49 Fixed two crashes 2021-09-04 20:53:47 -04:00
hondacrx 949d4806c5 Core/Spells: rework part 5: GameObject casting
Port From (https://github.com/TrinityCore/TrinityCore/commit/962f6d7988b9003e550f6745be7cff812e9d8efa)
2021-08-29 18:27:08 -04:00
hondacrx 1c5bb258d5 Core/CreatureAI: CheckBoundary -> IsInBoundary, better reflects what it does.
Port From (https://github.com/TrinityCore/TrinityCore/commit/994121e671127ce11df4e631ab0a4c310234191f)
2021-08-24 10:56:39 -04:00
hondacrx 7cc0221447 Core/Entities: kill unused return value from Unit::HandleSpellClick
Port From (https://github.com/TrinityCore/TrinityCore/commit/a1a00f823e7e47e8cb652b71a839c1d0875a8f84)
2021-08-09 10:05:13 -04:00
hondacrx 08db42917e Core/SmartScripts: Rename SMART_ACTION_RESPAWN_TARGET -> SMART_ACTION_ENABLE_TEMP_GOBJ, since that's the only thing it still does in the dynspawn model. Adjust body accordingly to warn on misuse.
Port From (https://github.com/TrinityCore/TrinityCore/commit/32997a598992c5be7ad838b52b9e9a185d68d9fb)
2021-08-09 09:57:11 -04:00
hondacrx 06a189e5e6 AI/SmartAI: New SMART_ACTION_RESPAWN_BY_SPAWNID
Port From (https://github.com/TrinityCore/TrinityCore/commit/61baf6704cf4f31b8b5f24d627d315659336c992)
2021-08-09 09:47:23 -04:00
hondacrx 1d5337d3f7 Fixed a crash with AISpellInfoType having cooldown default to 0 should be default 5000. 2021-07-03 11:37:20 -04:00
hondacrx 345a2974ea Fixes so errors 2021-06-25 10:40:44 -04:00
hondacrx 515ae6ed12 Core/SAI: Add an action_param3 to "summon gob" to control when the object will despawn
Port From (https://github.com/TrinityCore/TrinityCore/commit/4b6e76a5efe5e48ff20b4ef84e0f3dc0f9bc84a0)
2021-06-23 23:50:55 -04:00
hondacrx d485bf97ec Scripts/SmartAI: SetData now has an invoker (if the setting is done by something using SmartAI).
Port From (https://github.com/TrinityCore/TrinityCore/commit/37298ca99cce901bd358c536b34aee879f72f900)
2021-06-23 23:36:38 -04:00
hondacrx 751d397031 Entities/GO: Add forceRespawnTimer support to DespawnOrUnsummon. Use it in SAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/168be492f5924d306a90e7f8dfd86a6c547da3d7)
2021-06-23 23:09:48 -04:00
hondacrx 05c8b7adec Entities/GO: GameObjects now support (delayed) despawning in a reasonable manner.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bccd81e12ac418d2ba76c1cd6470c813a4d19229)
2021-06-23 22:58:03 -04:00
hondacrx d12ae8cde2 oops, now it builds (and a bonus refactor that annoyed me)
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd158f6c29581e08633c3971a130b0720f90b630)
2021-06-23 22:51:38 -04:00
hondacrx 4206c48aaa Scripts/SmartAI: Forward invoker to invoked action list actions. Also JustAppeared -> InitializeAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f26122528ad31a9dedbfcf5c1029cf750dfd1d4)
2021-06-23 22:48:37 -04:00
hondacrx fc49a98dab Scripts/SmartAI: SMART_TARGET_INVOKER cleanup step 1. The core will now log errors on start-up if SMART_TARGET_INVOKER abuse is found, but will continue to load the scripts as deprecated for now.
Port From (https://github.com/TrinityCore/TrinityCore/commit/06b5b8d8b7ac3da65013ccc0f03599ee9dee2163)
2021-06-23 22:41:44 -04:00
hondacrx 89586e9495 Core/AI: EscortAI init logic moved from JustAppeared to InitializeAI. There are no escort NPCs using compatibility mode anymore, so this is equivalent.
Port From (https://github.com/TrinityCore/TrinityCore/commit/f4cc76063f5c19773e25eaac9bd3975828c4cc47)
2021-06-23 18:03:42 -04:00
hondacrx ca1afb5c2e Core/Movement: Creatures' idle movement generator can no longer override player mover control.
Port From (https://github.com/TrinityCore/TrinityCore/commit/88c1739e3e1ecf58407b0846f3c8dfeb589f3113)
2021-06-23 17:50:46 -04:00
hondacrx 1aa375a8ee Misc updates 2021-06-23 15:53:42 -04:00
hondacrx 65173c19cb AI/SmartAI: Remove a silly incorrect piece of code that was breaking react state swaps on SAI creatures.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7695784fd2416764f3efa5bad3529250a49d05c8)
2021-06-23 15:31:17 -04:00
hondacrx f070f7a408 Game/AI: Remove some unused old logic.
Port From (https://github.com/TrinityCore/TrinityCore/commit/75a3b2f122f04a70f3e9eeed21cbe71d131c425f)
2021-06-23 15:13:21 -04:00
hondacrx a34469c171 Core/Entities: don't allow client control if player is still affected by any lose of control state
Port From (https://github.com/TrinityCore/TrinityCore/commit/d0f4310c4417fb5dc8e89061adf4ce113caa4227)
2021-06-23 14:39:59 -04:00
hondacrx 84d05548f2 Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version
Port From (https://github.com/TrinityCore/TrinityCore/commit/c77925da4a320df5be5eaeb1fc799df50e22c041)
2021-06-23 14:15:43 -04:00
hondacrx 87cc42ee48 Core/PlayerAI: perform cast checks on auto ranged attack
Port From (https://github.com/TrinityCore/TrinityCore/commit/b46d899ef16ce15e1f8403be076993545035cddc)
2021-06-23 14:08:27 -04:00
hondacrx 1cebd025fe Core/CombatAI: Npcs with TurretAI will be able to attack again
Port From (https://github.com/TrinityCore/TrinityCore/commit/3ff61beafa9f028e582c4d810b93352aa85b18a7)
2021-06-23 12:03:39 -04:00
hondacrx be2f4087b7 Core/SAI: Extended SMART_TARGET_VEHICLE_PASSENGER to allow specifying seat mask instead of single seat index (can now target all passengers)
Port From (https://github.com/TrinityCore/TrinityCore/commit/172df39350391e4fa2e40515d288e7e4e6b9cc91)
2021-06-22 20:55:38 -04:00
hondacrx fbd7df7c3f Some missed stuff. 2021-06-18 15:19:41 -04:00
hondacrx 5cc1dd1a61 Core/Map: New Map::ForceRespawn to override objections and force a respawn (equivalent to force = true). Use this to fix various GM commands.
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b7728f82e6e7c326b7945efd719218179e9767a)
2021-05-18 12:45:55 -04:00
hondacrx de0929bc8e Core/Scripts: Remove deprecated overload of QuestReward without LootItemType argument
Port From (https://github.com/TrinityCore/TrinityCore/commit/b9d63c2009c842a12876c2069ba0a3dd7d277f4a)
2021-05-18 12:39:00 -04:00
hondacrx 66ba3fe724 Core/Misc: A variety of clean-up changes:
Port From (https://github.com/TrinityCore/TrinityCore/commit/5aee452943e5c76f54f58eea9e6880b54a61ec9c)
2021-05-18 12:31:45 -04:00
hondacrx 9851142796 Core: Combat/threat system rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/34c7810fe507eca1b8b9389630db5d5d26d92e77)
2021-05-18 12:25:40 -04:00
hondacrx 5b0391b1d9 Core/AI: UnitAI trimming part two. WaypointX methods kicked upstairs to CreatureAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/e0afca513a9bfbd82134942e1266e46811707cbb)
2021-04-28 10:58:26 -04:00
hondacrx cb471274e8 Core/AI: Kick Gossip functions upstairs, from UnitAI to CreatureAI - they only make sense for Creatures anyway.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0aed5a35efd0305c1c3046430a1b348f2049a1c5)
2021-04-28 10:53:26 -04:00
hondacrx ad94721b7c Core/SAI: Don't clear stored pathid if it changed after processing waypoint events
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b0de23d0e4b15fce8dc8c67f9512f76804d6439)
2021-04-28 10:36:17 -04:00
hondacrx c925d7af40 Core/AI: CreatureAI.EnterCombat is now called CreatureAI.JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bce43de7f3fba618c370f2aba327d23dd30d1cdd)
2021-04-19 10:22:43 -04:00
hondacrx d0faa12ef6 Core/Spells: CastSpell Cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
2021-04-18 18:42:11 -04:00
hondacrx d1dbc3b3c0 Core/AI: Changing uint64 to ObjectGuid in GameObjectAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/29812b8b500d5afb9f116fb785868ff3c7f3b3c5)
2021-04-16 15:30:27 -04:00
hondacrx c1c9dbb762 Core/Spells: Add missing privateObjectOwner support to Spell::SummonGuardian
Port From (https://github.com/TrinityCore/TrinityCore/commit/46a81ea1f440b91611bc7b849ac09d523a041878)
2021-03-29 17:34:15 -04:00
hondacrx 98f9fdaf53 Core/Objects: Pass privateObjectOwner guid directly to SummonCreature functions
Port From (https://github.com/TrinityCore/TrinityCore/commit/33b3ebcae67870f704d86d30aa357781b33bb411)
2021-03-29 17:31:48 -04:00
hondacrx 62ec699ec6 Core: SOme code cleanup, more to follow. 2021-03-20 22:48:48 -04:00
hondacrx 4568cdad48 Core/Spells: Define all spell modifier types and implement ProcCooldown mod and PeriodicHealingAndDamage for melee periodic damage
Port From (https://github.com/TrinityCore/TrinityCore/commit/6585666e6e34ade0333e4c23876acdf847d169c0)
2021-03-17 18:52:59 -04:00