Commit Graph

208 Commits

Author SHA1 Message Date
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 958dbbb4d9 Core/SAI: add param3 to SMART_ACTION_CALL_TIMED_ACTIONLIST to allow it to override a currently running actionlist.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d197a7ce9b376f45e5de1a5aab3df75b77b62d8f)
2021-12-24 21:09:51 -05:00
hondacrx 0f248e2faa Core/SAI: allow creatures to handle gameobject spellhit SAI events.
Port From (https://github.com/TrinityCore/TrinityCore/commit/83a9222c390110ae082512ed858a5580a958aa21)
2021-12-24 21:05:03 -05:00
hondacrx b3759bb7b0 Core/SAI: do not pass old creatureData to UpdateEntry() and keep current health when changing a NPC's entry.
Port From (https://github.com/TrinityCore/TrinityCore/commit/62f5d9b46bd20faf90dd973e2786d1517b1b3bd2)
2021-12-24 20:57:58 -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 3126ac721d Core/SAI: silence wrong SAI error when using SMART_ACTION_SET_DATA on a creature using CreatureAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8c1adcf8f28a7ce90113175c732b98556c6bbb8)
2021-12-24 20:51:13 -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 925119c2ca AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/743d022cee936d47a60f23e72fda7fb72ee61907)
2021-12-24 20:16:01 -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 3c38758f09 AI/SmartAI: Move SMART_EVENT_RESPAWN invocation from ::InitializeAI() to ::JustAppeared().
Port From (https://github.com/TrinityCore/TrinityCore/commit/e398bb16648b483c97a68b2a29b25173b2a71261)
2021-12-23 20:24:47 -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 7a4882731d Core/SAI: allow to start waypoint movement for a creature that is in combat.
Port From (https://github.com/TrinityCore/TrinityCore/commit/5331656785a2b76c060c4e8d4cfb3938c8559efc)
2021-12-22 20:24:27 -05:00
hondacrx 6a295f7fe4 Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7745e3f94389cf22cf9be04b411e94936306a6f6)
2021-12-22 20:13:01 -05:00
hondacrx 2cbed03883 Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e846d4c3ef04d75839325409df109156d8ccced0)
2021-12-22 20:09:35 -05:00
hondacrx 8858e58f46 Core/SAI: add action_param3 to SMART_ACTION_REMOVEAURASFROMSPELL to allow it to remove only auras from spells that were cast by the entity itself.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d037c6b08634c5d0d4cc0462ae28e15baf8498bb)
2021-12-17 17:15:30 -05:00
hondacrx cf3bc71a74 Core/SmartAI: Improve SMART_EVENT_GOSSIP_HELLO
Port From (https://github.com/TrinityCore/TrinityCore/commit/e9aed3e442374db74ebc98edc39ba4ee46acf123)
2021-12-16 12:36:53 -05:00
hondacrx eef0e8e875 Misc fixes 2021-12-07 20:57:02 -05:00
hondacrx 5081e1aa69 Core/SmartAI: Implement SMART_EVENT_SUMMONED_UNIT and SMART_EVENT_SUMMON_DESPAWNED for GameObject owners
Port From (https://github.com/TrinityCore/TrinityCore/commit/6034992dffbbd511f59e77c13285da282d9c737d)
2021-12-07 20:44:30 -05:00
hondacrx c37e1c9f7d gameobject summoner
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f545f540216d3b94c26e4aeda50c8bb8d5c3d74)
2021-12-07 20:42:47 -05:00
hondacrx b7e4c2fd76 Core/SmartAI: Fix SMART_EVENT_SUMMON_DESPAWNED
Port From (https://github.com/TrinityCore/TrinityCore/commit/54044bda8219e712eaec6148af4db6523386cc0f)
2021-12-07 20:21:31 -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 c3dc452024 Core/PlayerAI: apply some movement related corrections
Port From (https://github.com/TrinityCore/TrinityCore/commit/6814b4d32b283c3a1b676d2f13953894a9f1ff7a)
2021-12-07 18:23:50 -05:00
hondacrx 96a207b00e Core/Misc: remove incorrect ClearUnitState calls related to movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/c511fa28037094a591d2ecc34b68c7e361f0d454)
2021-12-07 17:56:38 -05:00
hondacrx 3943eac5e2 Core/AI: couple movement related corrections in FollowerAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/bda32dfbd13a880287e408a221e5d0a7f97de5d5)
2021-12-07 17:54:31 -05:00
hondacrx 998e53913f Core/AI: streamline FollowerAI::MoveInLineOfSight with SmartAI and EscortAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/88f5536c43713c1a253d73fce3049a6696bb44b8)
2021-12-07 17:50:38 -05:00
hondacrx 3ec8fc41cb Core/AI: streamline FollowerAI::AssistPlayerInCombatAgainst with SmartAI and EscortAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/edbf45404be2cf003ceec7b4344180616b0e2315)
2021-12-07 17:48:33 -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 7bb87b1a8e Core/SAI: Fixed crash when using SMART_TARGET_CLOSEST_* in areatrigger smart script
Port From (https://github.com/TrinityCore/TrinityCore/commit/198d18bef5d3480cb30c80e4a4946327f401a6d4)
2021-12-07 16:59:57 -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 b58550abb5 Core: Restore reset in EscortAI::InitializeAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/36e009baf2d37fe79c5298e68fb1b00b174624a2)
2021-12-01 22:58:24 -05:00
hondacrx a04e405383 Core/SmartScripts: Implement SMART_ACTION_PLAY_CINEMATIC
Port From (https://github.com/TrinityCore/TrinityCore/commit/dad95d16b263b9c1cb8df6edac8043138fb4da9e)
2021-12-01 11:44:02 -05:00
hondacrx 614c903fd0 Core/SAI: Fix Move to position and Set run if used after a waypoint
Port From (https://github.com/TrinityCore/TrinityCore/commit/e5eff882826c8ae7943519ba355ba7c544274336)
2021-11-29 14:48:13 -05:00
hondacrx 3239fd1f28 Core/SAI: Fix the respawn event for GameObjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/da1166db98f5f73aa1d8dc04ae2e39617c8b6a4c)
2021-11-29 14:47:27 -05:00
hondacrx 10145749ca Core/SAI: Add maxSize parameter to SMART_TARGET_CREATURE_DISTANCE, SMART_TARGET_GAMEOBJECT_DISTANCE, SMART_TARGET_CREATURE_RANGE and SMART_TARGET_GAMEOBJECT_RANGE
Port From (https://github.com/TrinityCore/TrinityCore/commit/d6ce2fa8b8b48c6634a6fc55c4e7d7e93278f94b)
2021-11-15 20:33:50 -05:00
hondacrx f2a7383fad Core/SAI: Add a 4th target parameter to SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/4fabfa0903dfbf95bb4f0ce03fea953d4ef0a073)
2021-11-15 20:25:14 -05:00
hondacrx b026ee7ef8 More cleanups of custom classes in favor of .NET runtime types. 2021-11-15 18:04:57 -05:00
hondacrx 032f9a55f3 Cleanup some warnings. 2021-11-15 16:11:20 -05:00
hondacrx fde411266d Core/EscortAI: initialize run state before filling waypoints
Port From (https://github.com/TrinityCore/TrinityCore/commit/b606c22dfdf204f8b49bce78304ed1ad1eec9029)
2021-11-03 11:54:05 -04:00
hondacrx 78a466e5b6 Core/Unit: Some charm fixes:
Port From (https://github.com/TrinityCore/TrinityCore/commit/34f9666f209ab3f281bf81de92c4bc1a164b0059)
2021-11-02 14:14:58 -04:00
hondacrx 6f27d79873 Core/CreatureTexts: Added new field SoundPlayType to enable usage of ObjectSounds within creature_text
Port From (https://github.com/TrinityCore/TrinityCore/commit/437fb2aaba8850dd81a15d661c82403be9170c4e)
2021-11-02 14:00:01 -04: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 faa2360995 Scripts/SmartScripts: _SET_IN_COMBAT_WITH_ZONE and _CALL_FOR_HELP no longer use a target. Because that feature made no sense and was unused.
Port From (https://github.com/TrinityCore/TrinityCore/commit/f6ceb4bf0c5f95c043e90708e9369f7199a4201b)
2021-10-30 20:21:02 -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