Commit Graph

259 Commits

Author SHA1 Message Date
hondacrx 6df3ca3a3b Core/SAI: Add SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/f383c0ea214cc4da2d02b81e26297d77ff59c7ed)
2022-02-27 14:29:40 -05:00
hondacrx aff47f6501 Core/SAI: do not allow the waypoint pause timer to update while in combat.
Port From (https://github.com/TrinityCore/TrinityCore/commit/381333690b33c9148e994d9f68e7d12f1d5dc31d)
2022-02-27 13:58:30 -05:00
hondacrx 1b28a8260c Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/d4a1a7a040be0ca0d6428669135bcc64d92be1c2)
2022-02-27 13:57:18 -05:00
hondacrx 28175c47b1 Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/5ba93a95de911277908596d805e7fa7f38a18c3a)
2022-02-25 12:58:50 -05:00
hondacrx 483123d6cc misc fix 2022-02-24 16:21:55 -05:00
hondacrx bbc0c07697 Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ddde5ca3cac8ac03239882778af3702b59d582d)
2022-02-23 16:28:32 -05:00
hondacrx 475600daa9 Core/SAI: implement SMART_ACTION_ATTACK_STOP
Port From (https://github.com/TrinityCore/TrinityCore/commit/38be5e361e072edec6cfec584db9182ea3ad4450)
2022-02-23 16:13:54 -05:00
hondacrx c41acd0bc8 Core/AI: refactor SpellHit and SpellHitTarget.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3171cd3fa9dbcec43f5d70b74ab2f54a2aa44173)
2022-02-23 16:02:13 -05:00
hondacrx 8126e7c6e1 Game/AI: Implement new targettype SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT
Port From (https://github.com/TrinityCore/TrinityCore/commit/db825c3221de16cdb757711781318d76b414213f)
2022-02-18 13:35:32 -05:00
hondacrx ed5648d8ac Game/AI: Enable check for SMART_TARGET_GAMEOBJECT_RANGE
Port From (https://github.com/TrinityCore/TrinityCore/commit/ecd6bce5d207f6d704d80823dd7313c794bdb60a)
2022-02-18 13:27:13 -05:00
hondacrx 5d8b77b440 Game/SmartScripts: Reset counter in SAI only on Initialize.
Port From (https://github.com/TrinityCore/TrinityCore/commit/864ce5a11cab0e6b62e74eea958b02452e6c8797)
2022-02-18 13:23:08 -05:00
hondacrx c34fe71311 Core/SAI: Allow SMART_TARGET_ACTION_INVOKER to target GameObjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/a947ee191276578d9bfa23e2f678574e5f5fa5a0)
2022-02-17 17:02:50 -05:00
hondacrx 6c0e21b4de Misc updates/fixes 2022-01-27 12:36:56 -05:00
hondacrx 49f32780dc Core/SAI: added new action type SMART_ACTION_ADD_TO_STORED_TARGET_LIST
Port From (https://github.com/TrinityCore/TrinityCore/commit/bc4e285c2104993f9eb8c0dc03e0eba800df1a88)
2022-01-07 13:40:09 -05:00
hondacrx fcf47da853 Core/AI: Make critters flee as soon as engaged in combat and make them evade after they stop running in fear
Port From (https://github.com/TrinityCore/TrinityCore/commit/934c320d4b0da40691be7449f860447fe79b4083)
2022-01-07 12:44:09 -05:00
hondacrx 56e6674001 Core/AI: Fix charmed Creatures with SAI scripts not starting waypoint paths
Port From (https://github.com/TrinityCore/TrinityCore/commit/c75d75b9fa53309467ec7fff810dd77d9f7fde09)
2022-01-07 11:36:15 -05:00
hondacrx 6ece3e2b66 Core/Maps: Citizens of Dalaran! Raise your eyes to the skies and observe! Any non-map-default light can now be overriden!
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8d1f37ee098db01872d8861a0b48d5d4cb9d172)
2022-01-07 11:34:15 -05:00
hondacrx 0490d3eed1 Core/SAI: Allow resetting light overrides with SMART_ACTION_OVERRIDE_LIGHT
Port From (https://github.com/TrinityCore/TrinityCore/commit/29aef603efefdbecf32d7376b1c24781cb635f04)
2022-01-07 11:26:19 -05:00
hondacrx b69a918d9f Core/AI: Fix remaining charming issue
Port From (https://github.com/TrinityCore/TrinityCore/commit/dab7e5688c55d4b785a9277d15ea55e075870849)
2022-01-07 11:20:03 -05:00
hondacrx 04a3bf7d8f Core/AI: Allow creatures to evade
Port From (https://github.com/TrinityCore/TrinityCore/commit/93e66f3f3e8bdcf0138ab67c3edda948d6f97b00)
2022-01-07 11:18:14 -05:00
hondacrx b30ded6189 Core/AI: Make charmed creatures follow their owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/144cfc2bcebbd0d2bbce5f97a06f634d17d62e79)
2022-01-07 11:12:23 -05:00
hondacrx 131e2c7815 Core/DynamicInfo: rename some parameters according packet definitions
Port From (https://github.com/TrinityCore/TrinityCore/commit/5e178b30fab3506ee028554c116785a55e26a740)
2022-01-07 10:50:34 -05:00
hondacrx 7a63e227ed Core/SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER
Port From (https://github.com/TrinityCore/TrinityCore/commit/1d08423725141de712290b18739dcc9b3ea3a7c6)
2022-01-07 09:52:49 -05:00
hondacrx 7b63d93861 Core/SAI: SMART_ACTION_PAUSE_MOVEMENT
Port From (https://github.com/TrinityCore/TrinityCore/commit/a90b9abbf0754d4156b3d6b02f1a97eafae8f3e9)
2022-01-07 09:41:11 -05:00
hondacrx 63fa8636f4 [WIP] Core/AI: Pets musn't attack civilian NPC in aggressive mode
Port From (https://github.com/TrinityCore/TrinityCore/commit/1e932109996a0ce2117f3d5268064ee882267e84)
2022-01-07 09:36:23 -05:00
hondacrx a4ace1e181 Scripts: Fix rbac permission for skipping default boss sequencing check
Port From (https://github.com/TrinityCore/TrinityCore/commit/5d02739b989a66e1d4326035e53ad889be3eeab6)
2022-01-06 00:09:20 -05:00
hondacrx b14121d677 Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior
Port From (https://github.com/TrinityCore/TrinityCore/commit/aa81d8979f72ad093e8bf7ef0966852236a717d5)
2022-01-06 00:07:18 -05:00
hondacrx 3be49e6e3a Core/Scripts: Add missing implementation for samePhase argument of ScriptedAI::ForceCombatStopForCreatureEntry
Port From (https://github.com/TrinityCore/TrinityCore/commit/68a25f5e9bdd48330e48133961ca22183130e424)
2022-01-06 00:00:04 -05:00
hondacrx 93389f32e2 Scripts/ICC: little bit of cleanup in Valithria after the "recent" changes
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7571e5d1f3b4cd5672a6344d96c782d7c83ea88)
2022-01-05 23:58:58 -05:00
hondacrx 72fa0cd450 Core/Creature: Clear creature focus after an evade
Port From (https://github.com/TrinityCore/TrinityCore/commit/a7cf209428fae5b025a0dcdc6b00bcef12175ed6)
2022-01-05 23:55:47 -05:00
hondacrx acfe9946c6 Core/AI: Fix creatures not updating their target properly once engaged
Port From (https://github.com/TrinityCore/TrinityCore/commit/d946d74ff9f2d4bec8b78a6b7ea85fbb9daefeb5)
2022-01-05 23:46:16 -05:00
hondacrx b67e313e6b Creature/AI: Reset CoolDowns on evade
Port From (https://github.com/TrinityCore/TrinityCore/commit/a09d5d485404ce5ee976dbba74ab0b50f3a2bcde)
2022-01-05 23:29:59 -05:00
hondacrx 47cfd6d419 Core/Creatures: Fixed crash when guards get killed by periodic auras whose caster is offline or despawned
Port From (https://github.com/TrinityCore/TrinityCore/commit/e539de68e10a64b0f0a0619eb5213ab5315b01c9)
2022-01-05 20:25:41 -05:00
hondacrx b4784bd68a Core/AI: add another helper for "ScriptedAI::ForceCombatStop"
Port From (https://github.com/TrinityCore/TrinityCore/commit/d967d03151b94e89180192684c055e9709cb1447)
2022-01-05 17:48:50 -05:00
hondacrx ec83cf5a6d Fixed pets repositioning themselves after every cast
Port From (https://github.com/TrinityCore/TrinityCore/commit/e42aae18952d198680f4215d16175d274d4be179)
2022-01-05 17:42:54 -05:00
hondacrx 873569750b Core/AI: Add new method to force creatures around to stop combat
Port From (https://github.com/TrinityCore/TrinityCore/commit/7d78ddcbd5f68ba7b8d3a7cce527d53d4f37ae0a)
2022-01-05 17:15:41 -05:00
hondacrx 0d68984717 Misc fixes, and added GetDebugInfo() which was missed. 2022-01-05 13:11:32 -05:00
hondacrx 6fe5a31fab Scripts/Outland: Fix npc_ancestral_wolf not starting waypoint
Port From (https://github.com/TrinityCore/TrinityCore/commit/913f0903a3264f14ea44356bc86dade81348a546)
2022-01-04 20:01:29 -05:00
hondacrx 97ce4d6db7 Misc fixes and missed stuff. 2022-01-04 17:37:55 -05:00
hondacrx 92c90bf777 Core/Unit: Spell focusing now no longer nonsensical. HasSpellFocus always const. Error logs for various stuff.
Port From (https://github.com/TrinityCore/TrinityCore/commit/14c38a1c529e634b068a67b3e7475ddcf599086b)
2022-01-02 19:49:21 -05:00
hondacrx 6ad0b6f159 Core/Unit: rename IsFocusing method
Port From (https://github.com/TrinityCore/TrinityCore/commit/be4ed9152c1a9c3dab9949eb36d867b763603f60)
2022-01-02 19:25:23 -05:00
hondacrx e70e2d0088 Core/SmartAI: SmartAI creatures no longer process health-based hooks after death.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3db58c4d96c446b736b84d4954f8fd9c9e309e33)
2022-01-02 19:15:03 -05:00
hondacrx 4c0eb3f2e2 Scripts/FollowerAI: Some cleanup:
Port From (https://github.com/TrinityCore/TrinityCore/commit/8c3eb07889f72955879c8a0e0881b51befb60067)
2022-01-02 13:06:01 -05:00
hondacrx f954046c4c Core/Combat: Properly unset engagement flag on death.
Port From (https://github.com/TrinityCore/TrinityCore/commit/6b1ca0ca128425677043d36a147a019f6d2ac6e6)
2022-01-02 12:32:11 -05:00
hondacrx e7ab9031ac Core/AI: No longer do strange things when told to enter evade mode while there's no need to do so, typically by terrible legacy code.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3269c4278933d65ef0df619a50cbd0b851cab4fc)
2022-01-01 17:58:34 -05:00
hondacrx 5c57253090 Core/AI: PetAI now properly signals engagement state.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1759502f5d4cc89ab80e9cfb93c804e096a3ad93)
2022-01-01 17:56:20 -05:00
hondacrx 077cdc5d23 Core/AI: No longer override chase movement with follow movement if the creature engages before JustAppeared has had a chance to fire.
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4c2c0fb1d1b9fae832ecc52aa68fe3fb8d1ca52)
2022-01-01 17:08:13 -05:00
hondacrx 2842cc9c91 Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c13d83796f7b2111c5dcf8546bdd84eccd232ae3)
2022-01-01 17:05:29 -05:00
hondacrx a4c4897b4d Core/SmartAI: add missing movement generator type check on SmartAI::SetCombatMove
Port From (https://github.com/TrinityCore/TrinityCore/commit/e94dca132b4a505f3cc4583bd63879148ad51ca3)
2022-01-01 16:17:58 -05:00
hondacrx c0aad82cd1 Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome()
Port From (https://github.com/TrinityCore/TrinityCore/commit/f1ef2f73a4da4cf466728903207e9d623800d70e)
2022-01-01 16:11:41 -05:00