Commit Graph

257 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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
hondacrx 55c298be9f Core/Misc: Various dynspawn cleanup and refactors split off from pooling rewrite:
Port From (https://github.com/TrinityCore/TrinityCore/commit/eee950cdd7bcbe9443a53ea5c4cce35444a503f7)
2021-12-27 18:09:58 -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 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 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 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 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 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 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 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 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 5d94082841 Core/SmartAI: SetRun fix for SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c3690db917016461f4c94b7e75bd16e67b5b0f0)
2021-10-30 19:59:16 -04:00
hondacrx 6ea312d748 DBError follow-ups:
Port From (https://github.com/TrinityCore/TrinityCore/commit/45766c3d6eb4f70dfa6fe58f99d046e280664480)
2021-10-30 19:57:59 -04:00
hondacrx d21b9e1858 AI/SmartScripts: Replace SMART_ACTION_INVOKER_CAST with SMART_ACTION_SELF_CAST in action 85. SMART_ACTION_INVOKER_CAST moves to 134.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0aee79dfb8027e8b35472f5f61eb4f318528c951)
2021-10-17 18:49:09 -04:00
hondacrx 7c360aae68 Some cleanups 2021-10-17 17:13:53 -04:00
hondacrx 9a41de7593 AI/SmartScripts: Warn on startup for ACTION_INVOKER_CAST without invoker (same as invoker targets)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a2d266edf3da950ac4aeaf48b6778f8bbc7bcdd4)
2021-10-17 17:02:08 -04:00
hondacrx 6c896fdb21 Fixed Build. 2021-10-10 14:06:22 -04:00
hondacrx 9aeccb6444 Core/SAI: Fixed SMART_ACTION_EQUIP to properly set values in all slots
Port From (https://github.com/TrinityCore/TrinityCore/commit/d2dcce09d714439ee7f4836443e53ab98490cccc)
2021-10-10 09:56:02 -04:00
hondacrx a1459617e6 Core/Conversations: Replace _participants with generic personal object implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/3fe9b0a2961b60509d11dd38a90e7b7657b68084)
2021-10-10 09:55:16 -04:00