Commit Graph

170 Commits

Author SHA1 Message Date
hondacrx ba6c30add4 Start adding missing scripts Part3 2022-07-06 23:53:47 -04:00
hondacrx 793fbda3cd Core/SAI: Added Action SMART_ACTION_DO_ACTION for calling DoAction on target AI
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4eafbd3f6a4d4ea4934dca564cd6c4beae54280)
2022-06-14 17:57:47 -04:00
hondacrx 40444525b2 Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
2022-06-03 16:20:41 -04:00
hondacrx 8e58467912 Core/SAI: Corrected wrong useSaiTargetAsGameEventSource logic in previous commit
Port From (https://github.com/TrinityCore/TrinityCore/commit/51299ab88620a56bd3c7f3e38a9b28844252aae7)
2022-05-31 20:47:10 -04:00
hondacrx deadb86e31 Core/SAI: Implemented new action SMART_ACTION_TRIGGER_GAME_EVENT
Port From (https://github.com/TrinityCore/TrinityCore/commit/9d0187dd5669d73bcb94ffe76b4fc3975a5455cc)
2022-05-31 20:46:07 -04:00
hondacrx e1b85a66e9 Core/SAI: Support gameobject targets for SMART_ACTION_PLAY_ANIMKIT
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8246d1ba76cabcd034b60b806505f1a5a87465f)
2022-05-31 20:05:07 -04:00
hondacrx 442da7511f Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
Port From (https://github.com/TrinityCore/TrinityCore/commit/b47185cabfbdeeaf492bf2303635db07ce703785)
2022-05-30 16:12:11 -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 1040f80181 Core/SAI: Use GetBaseObject as second param of SMART_ACTION_ACTIVATE_GAMEOBJECT & reorder GameObjectActions
Port From (https://github.com/TrinityCore/TrinityCore/commit/52bb230e4c83c814658b77f6d277da77e0b47be7)
2022-05-30 14:46:24 -04:00
hondacrx eedbf145d1 Core/SAI: Remove SMART_ACTION_SEND_GO_CUSTOM_ANIM, make SMART_ACTION_ADD_AURA & SMART_ACTION_SET_GO_FLAG deprecated
Port From (https://github.com/TrinityCore/TrinityCore/commit/9ea8cdb45716c162221c7d8a6f37da19a047c6d7)
2022-05-30 14:43:56 -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 5ea0f1e468 Core/SAI: Remove reactState param from SMART_ACTION_WP_START
Port From (https://github.com/TrinityCore/TrinityCore/commit/ebcd45b7e1eaa07386a3927d73575339535ec557)
2022-05-30 13:42:39 -04:00
hondacrx 774e978d18 Core/SAI: Add SMART_ACTION_ACTIVATE_GAMEOBJECT action
Port From (https://github.com/TrinityCore/TrinityCore/commit/791b759332b784211031571d3ca68cf0080897cb)
2022-05-30 13:41:04 -04:00
hondacrx 9218188614 Core/SAI: Remove deprecated events and actions
Port From (https://github.com/TrinityCore/TrinityCore/commit/29190e56428afa8d5acd2cf6ca3d712c2558899d)
2022-05-30 13:01:42 -04:00
hondacrx ba7b2e42a3 Core/SAI: Split set/remove unit_flags actions
Port From (https://github.com/TrinityCore/TrinityCore/commit/e80777cb39d5eb940348300aa2a6d42cede039a8)
2022-05-29 23:06:21 -04:00
hondacrx 9f702c199b Core/SAI: Remove possibility to set/remove unit_flags2
Port From (https://github.com/TrinityCore/TrinityCore/commit/f55e86d90735aad1c0cfd8d1b6e79aa721e8267c)
2022-05-29 22:55:34 -04:00
hondacrx 59cc33bcc6 Core/SAI: Remove SMART_ACTION_INSTALL_AI_TEMPLATE
Port From (https://github.com/TrinityCore/TrinityCore/commit/7d9088e9cf1104c5c21d350a9d7e93c1a8fe8ef5)
2022-05-29 20:42:09 -04:00
hondacrx 4aa4509db0 Core/SAI: Remove SMART_ACTION_SET_DYNAMIC_FLAG
Port From (https://github.com/TrinityCore/TrinityCore/commit/842eb3bdd7e18e7f069e8aafd99145a62f82900c)
2022-05-29 16:24:09 -04:00
hondacrx 8f11cd7660 Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc3e26fdfe68a7b1a7c0dd6f67dc545f40b9465e)
2022-05-29 16:02:53 -04:00
hondacrx fbedb839f9 Core/SAI: Warn when an unused parameter is set in the database
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9e685bd9a0ac524edb8fe64eb6ec37540c55acc)
2022-05-29 15:35:39 -04:00
hondacrx 750fd7f885 Core/SAI: Allow SMART_ACTION_SUMMON_CREATURE to summon more than 1 creature
Port From (https://github.com/TrinityCore/TrinityCore/commit/40416d62f354c2a49f6acf9fac094401e25d3db8)
2022-05-26 21:50:25 -04:00
hondacrx 3669df2708 Core/SAI: Add support to friendly+hostile to SMART_EVENT_OOC_LOS and SMART_EVENT_IC_LOS
Port From (https://github.com/TrinityCore/TrinityCore/commit/76c470fb3207c195804e789812a330394e81ecc3)
2022-05-26 21:46:26 -04:00
hondacrx a5619334ae Core/Map: Added Map::SetZoneOverrideLight TimeSpan overload
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
2022-05-26 16:57:15 -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 78d39e4c19 Core/Creature: Allow to skip Rate.Corpse.Decay.Looted when calling SetCorpseDelay()
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4a3e2e75999230d0d2e38886eef4ce0271f4a1d)
2022-05-25 13:36:12 -04:00
hondacrx 6297e81009 Core/SAI: Add new action SMART_ACTION_SET_HEALTH_PCT
Port From (https://github.com/TrinityCore/TrinityCore/commit/4c30b2a1827b81774136d37cb521dbd5823c3423)
2022-05-25 13:30:00 -04:00
hondacrx fe78a4651c Core/SAI: Fix SMART_EVENT_FLAG_NOT_REPEATABLE flag being ignored when specifying a chance
Port From (https://github.com/TrinityCore/TrinityCore/commit/da0d9ee28349d1974cdacc0e3ad5b3707af04a36)
2022-05-24 14:31:16 -04:00
hondacrx 871dc5ab5d Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/dde5a3e32645060fbcc4856770dfc6a0c43a3947)
2022-05-24 13:40:19 -04:00
hondacrx c3e8791aac Misc fixes 2022-05-24 13:20:05 -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 39ec9e309f Core/Objects: Use player as summoner for personal clones
Port From (https://github.com/TrinityCore/TrinityCore/commit/79c605436942d652c50e4cfeac9d1b20a86a2343)
2022-05-05 10:02:40 -04:00
hondacrx ecb3f5f857 Game/AI: Implement option to move a creature back to Homeposition on Evade.
Port From (https://github.com/TrinityCore/TrinityCore/commit/dfeb8c267f94f6a2b2ebe717fd43c5d4fd36a549)
2022-05-04 09:29:44 -04:00
hondacrx 42046011e7 Core/Movement: Corrected Animation Tier handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/ee620856ad2918ae7ce91a37a980d9f2129a074a)
2022-05-03 13:29:52 -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 a9dcb2f2d7 Scripts/Obsidian Sanctum: Fix portals not being visible
Port From (https://github.com/TrinityCore/TrinityCore/commit/d561a691220c2c0856f63ff6cbcd4d0af8c761d5)
2022-04-28 10:14:22 -04:00
hondacrx ac388f2a1a Core/SAI: Reduce the chance of infinite loops/stack overflows
Port From (https://github.com/TrinityCore/TrinityCore/commit/4dff5bd09b73c0a02cf8a95f9e4f528e74a5ef50)
2022-04-28 10:11:23 -04:00
hondacrx 70ba25ad06 Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT
Port From (https://github.com/TrinityCore/TrinityCore/commit/902ed74c2adaf2dadcd38f1fb96963f7ec46df07)
2022-03-11 17:54:05 -05:00
hondacrx cb52217cad Core/SAI: Remove completed timed action lists even while evading
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f2c48f8bb2396995c1e37e914ef2f3fa6bca490)
2022-03-11 09:29:22 -05:00
hondacrx 82389dbaeb Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events
Port From (https://github.com/TrinityCore/TrinityCore/commit/f2ee365da43f851181c8a486e10325a95b75c55d)
2022-03-04 17:20:01 -05:00
hondacrx fc1ad317d4 Core/SAI: Fix creatures casting with flag SMARTCAST_COMBAT_MOVE not switching to melee when the school of the spell they are trying to cast gets silenced (and other cases of spell failure)
Port From (https://github.com/TrinityCore/TrinityCore/commit/e11e1938b5237a198c82cfdf128a9b6c1e3686ad)
2022-03-03 13:30:54 -05: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 c26134cc27 Core/SAI: Ignore SAI while evading
Port From (https://github.com/TrinityCore/TrinityCore/commit/1977d26050d1b0c6f2d21fe3316147ae0df9fc64)
2022-03-02 09:19:34 -05:00
hondacrx 042bfc12e5 Convert alot of methods to use TimeSpan. 2022-03-01 23:47:53 -05:00
hondacrx 9f72f655ab Core/SAI: Support SMART_TARGET_POSITION in SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/a270005de1122d18ea4b4e01b114a87bc0e7c0eb)
2022-02-27 15:07:03 -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 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 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