Commit Graph

88 Commits

Author SHA1 Message Date
hondacrx 63cbd18350 Fixed crashes and errors when loading into world. 2022-06-21 14:56:22 -04:00
hondacrx 04caa3e757 Misc fixes 2022-06-15 18:27:32 -04:00
hondacrx 5833be817a Fix build 2022-05-31 11:46:11 -04:00
hondacrx 6751370788 Misc fiixes 2022-05-30 16:21:09 -04:00
hondacrx f53c4cb009 Core/Misc: Rename SetXXXFlags updatefield functions to ReplaceAllXXXFlags
Port From (https://github.com/TrinityCore/TrinityCore/commit/4eba9786708dd3b22d9053c1a14eac7e6d03242e)
2022-05-30 15:57:56 -04:00
hondacrx 306b0cb227 Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/050f55b62fded4cc73b76e42d56d98ea950cc26a)
2022-05-30 15:44:21 -04:00
hondacrx f7686f696d Core/SAI: Remove deprecated events and actions
Port From (https://github.com/TrinityCore/TrinityCore/commit/e27724b3620ce245c8055d1cfa58b7caade7fb64)
2022-05-30 13:54:58 -04:00
hondacrx 0534356aff Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken
Port From (https://github.com/TrinityCore/TrinityCore/commit/71c2f0af46b3ccec8c3422534e4403f3650b757d)
2022-05-29 20:34:44 -04:00
hondacrx a59b3b8075 Core/SmartAI: AI change on charmed
Port From (https://github.com/TrinityCore/TrinityCore/commit/8a4d731d55af63210e660727dc0aea68c8ecce05)
2022-05-25 13:46:41 -04:00
hondacrx 1e80eb21f0 Core/SAI: Fix SMART_ACTION_WP_RESUME actually pausing next waypoint if the current path was not paused
Port From (https://github.com/TrinityCore/TrinityCore/commit/eb17e94b2e0059edeb747cb03e6828a746a2c0b8)
2022-05-24 12:57:10 -04:00
hondacrx a4d5b9eb6f Core/SAI: Fix SMART_ACTION_WP_PAUSE with 0 delay pausing the path only for 1 world loop update
Port From (https://github.com/TrinityCore/TrinityCore/commit/60519e947f634f12aa93a1871d53e012ed9e57d2)
2022-05-24 10:04:06 -04:00
hondacrx 52ce6b2700 Add "On" to some gossip methods in AI
Port From (https://github.com/TrinityCore/TrinityCore/commit/bc04acb72652882290cef49b2055d3cf1ab12f36)
2022-05-04 09:26:05 -04:00
hondacrx 7a7c3a3a1f Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway.
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc094509e9df59e055840936ba3389504fba87df)
2022-04-28 10:37:51 -04:00
hondacrx ec88268d0f Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter
Port From (https://github.com/TrinityCore/TrinityCore/commit/c2d2df96dbe8e31e27283f73bad576ab42a3d579)
2022-04-28 10:36:37 -04:00
hondacrx 3f8c0f897a Core/SAI: Fix creatures casting spells while moving with flag SMARTCAST_COMBAT_MOVE
Port From (https://github.com/TrinityCore/TrinityCore/commit/b3545479bfbd2b743288bd32094ce8c4856a1e3d)
2022-03-02 18:02:58 -05:00
hondacrx bd040a1f17 Creature/AI: Remove SetVisible from SmartAI::InitializeAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/77d76ecc1d13069fcff3fd1b609c924bca5ee965)
2022-02-27 23:47:00 -05:00
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 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 6c0e21b4de Misc updates/fixes 2022-01-27 12:36:56 -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 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 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 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 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 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 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 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 78a466e5b6 Core/Unit: Some charm fixes:
Port From (https://github.com/TrinityCore/TrinityCore/commit/34f9666f209ab3f281bf81de92c4bc1a164b0059)
2021-11-02 14:14:58 -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 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 a968772bad Core/Movement: MotionMaster reimplementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/426f9f2f92b26fbb68e7cda9290ccbd586c6af4e)
2021-09-29 18:24:37 -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 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 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 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 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