Commit Graph

115 Commits

Author SHA1 Message Date
hondacrx b4a59ea746 Misc fixes 2022-02-28 14:16:57 -05:00
hondacrx 03c646d2c8 Core/CombatAI: Use TimeSpan overloads of EventMap
Port From (https://github.com/TrinityCore/TrinityCore/commit/d62b7c1e352e76f35490c22b2ab291ed299f4fa4)
2022-02-28 14:13:02 -05:00
hondacrx f55e8ae73c Core/PetAI: Validate GetCharmInfo()
Port From (https://github.com/TrinityCore/TrinityCore/commit/8fd7a4b6e5f6b728c4ae40cfd2080c4dae004e8f)
2022-02-27 23:36: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 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 6c0e21b4de Misc updates/fixes 2022-01-27 12:36:56 -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 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 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 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 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 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 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 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 73fa489610 Misc: some corrections after recent merges
Port From (https://github.com/TrinityCore/TrinityCore/commit/cadbf42ea4489933f28caf356f8c8d09ca243083)
2021-12-24 21:38:37 -05:00
hondacrx 5a7d42530e Core/AI: Actually accurately reproduce the logic from before 8499434 that determines what summons start following on appearance. Third time's the charm?
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9d52c954793404af02f75af97390d7c82c433ff)
2021-12-24 20:55:55 -05:00
hondacrx 8ff2e2d75b Core/Creatures: Fixed crash in CreatureAI::JustAppeared caused by scripted summons without SummonProperties
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c00109756815b6888303b31748595521fd7809c)
2021-12-24 20:25:47 -05:00
hondacrx d255912aa6 Core/AI: minimize further undesired behaviours
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7e544e81626ab477024c057e3e7a2a45083f3a7)
2021-12-24 20:22:19 -05:00
hondacrx bd3768c4ef AI/TotemAI: Tell Shaman Totems to stay put and stop moving.
Port From (https://github.com/TrinityCore/TrinityCore/commit/007eb8c9311320217fdda0bc0e6c05044254edfe)
2021-12-24 20:20:05 -05:00
hondacrx 3cf7f6b831 Combat/Threat: Split ThreatManager::NotifyDisengaged off from ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/38d7c1530a65a7ff1bd10775c4a35269b2416538)
2021-12-24 20:15:10 -05:00
hondacrx 2d87d0c75d Core/AI: Remove EnterEvadeMode calls from Guardian/Summon spell handlers. Add follow logic to CreatureAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/9f7d3ebd6a474c2e325698b1665ab2939926cab6)
2021-12-23 20:23:16 -05:00
hondacrx eef0e8e875 Misc fixes 2021-12-07 20:57:02 -05:00
hondacrx c37e1c9f7d gameobject summoner
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f545f540216d3b94c26e4aeda50c8bb8d5c3d74)
2021-12-07 20:42:47 -05:00
hondacrx 73b84ca811 Core/PetAI: apply some movement related corrections
Port From (https://github.com/TrinityCore/TrinityCore/commit/14712653dd813789bb47165621416e56eac47c8e)
2021-12-07 20:15:06 -05:00
hondacrx 2fdc3665a4 Core/AI: PetAI method reordering
Port From (https://github.com/TrinityCore/TrinityCore/commit/86b4aa01bb31067e788b6ccffccd04a9901d779b)
2021-12-07 18:28:52 -05:00
hondacrx 1f0896fb20 Core/PetAI: apply some movement related corrections
Port From (https://github.com/TrinityCore/TrinityCore/commit/97dddac75adab46d55d3d698e36c4403a93b4372)
2021-12-07 18:26:50 -05:00
hondacrx 7c223b9a47 Core/Spells: Return CheckCast result from CastSpell
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab988dc98284285b8ed0253f0bca1ddeb7eb9982)
2021-12-07 17:31:24 -05:00
hondacrx 4fb48f1522 Core/Vehicles: Fix accessories disappearing on reset
Port From (https://github.com/TrinityCore/TrinityCore/commit/a855e6221d517297cfb9e2e78b57a6a57fccc85a)
2021-12-07 14:19:43 -05:00
hondacrx dcd4dc4226 Remove Deprecated code
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ced6d219236084412e9e76dbbbf1eb615efa920)
2021-12-07 14:18:01 -05:00
hondacrx 8fa7feb9da Core/Scripts: Rename recent GameObject spell overloads to fix warnings
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4fcfbb3afe388f90725734b0180ad8322277b7d)
2021-12-01 23:05:27 -05:00
hondacrx b026ee7ef8 More cleanups of custom classes in favor of .NET runtime types. 2021-11-15 18:04:57 -05:00
hondacrx 26940fa650 Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
2021-10-31 13:55:26 -04:00
hondacrx 1578935f08 Core/AI: Remove unnecessary parameter from DoZoneInCombat
Port From (https://github.com/TrinityCore/TrinityCore/commit/5d48e8db7d0175af807e77214583058bf6e9c790)
2021-10-30 20:08:11 -04:00
hondacrx fc68f3e528 Core/AI: Some cleanup to DoZoneInCombat and Malygos' AI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/6a5edf04725502d749636fc6c6bb3935d83c222f)
2021-10-30 20:05:09 -04:00
hondacrx d6f5d10da5 Core/PassiveAI: Fix an incorrect check that was inducing evade spam with critters.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e22c70c27dd4bcd6e19b42dd45df27da9368fc4)
2021-10-14 19:44:39 -04:00
hondacrx 72018b983c Core/AI: Add a new LeavingWorld AI hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/2642fb1a489e4b79a17bbb63127c8b3ce2823e1e)
2021-10-08 10:33:53 -04:00