Commit Graph

342 Commits

Author SHA1 Message Date
hondacrx ed85b3ae55 Core/Movement: Allow waypoints to use 0 as valid facing value
Port From (https://github.com/TrinityCore/TrinityCore/commit/8501fb572a38b7d278c6e37d7b32164c63771550)
2022-06-15 18:12:42 -04:00
hondacrx 0224d95b91 Core/Spells: Increase search radius for avoid problems with some spells that can't find units with huge combat reach
Port From (https://github.com/TrinityCore/TrinityCore/commit/b52ce8e65e8998df1b243b854129d359ee2d25ae)
2022-06-15 16:09:33 -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 446038b855 Core/SAI: Removed invalid eventId restriction on SMART_EVENT_ACTION_DONE
Port From (https://github.com/TrinityCore/TrinityCore/commit/c6802e272b95f3604bd23ee8ba361b8d7ebf64bc)
2022-06-03 16:21:44 -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 68d8f664d7 Core/Spells: Implemented SPELL_ATTR5_NOT_ON_PLAYER and SPELL_ATTR5_NOT_ON_PLAYER_CONTROLLED_NPC
Port From (https://github.com/TrinityCore/TrinityCore/commit/acda6f9dcf411a1406b81e1a100125dbe34f942b)
2022-06-01 15:37:28 -04:00
hondacrx 8cddeb0fc5 Core/Spells: Rename SpellAttr3 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d7b58a3dd8b0eb95c233a20c1608ddce73d9ea)
2022-06-01 13:01:55 -04:00
hondacrx dc6eb46302 Core/Spells: Rename SpellAttr0 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/a31e6819447626cd7b6967665001ea89bf6a0298)
2022-05-31 21:05:21 -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 5833be817a Fix build 2022-05-31 11:46:11 -04:00
hondacrx 6751370788 Misc fiixes 2022-05-30 16:21:09 -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 2472177ef6 Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b7effa4cfa3476ed5aa41729b4ab9fb15e7a1c0)
2022-05-30 15:08:50 -04:00
hondacrx f07b6fecd5 Core/AI: Fix crashes caused by charmed Creatures having null AI for 1 map update tick
Port From (https://github.com/TrinityCore/TrinityCore/commit/8c25abca72772e2962bac7f460a567a943388a05)
2022-05-30 14:56:15 -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 c3b1daca3f DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActions
Port From (https://github.com/TrinityCore/TrinityCore/commit/3cfca163598b604ac8afe76efa6a3062c8fc087d)
2022-05-30 14:18:50 -04:00
hondacrx 496b1e0c46 Core/Pets: Do not force pets to follow their charmer when possessed by player
Port From (https://github.com/TrinityCore/TrinityCore/commit/8f02596162715b273b1a830425ae783bd00561c9)
2022-05-30 14:08:55 -04:00
hondacrx 3beab79944 Misc fixes 2022-05-30 13:57:03 -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 410caaae41 Core/SAI: Make 'no, thanks' actions deprecated
Port From (https://github.com/TrinityCore/TrinityCore/commit/6ac4e9dd4a9fbe74113810d0f4942ebdb9946d8a)
2022-05-30 13:11:20 -04:00
hondacrx c5c6b42337 Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET deprecated
Port From (https://github.com/TrinityCore/TrinityCore/commit/0ad6258d4b71f2762bc37ea516e4c9836d02bc75)
2022-05-30 13:07:07 -04:00
hondacrx a23a152492 DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, re-handle equipment in few scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/2beb606cdfc168bec14f1af398fad04a3ec0baf7)
2022-05-30 13:06:22 -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 ccf3198c7e Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/c4906ce60be52c9a678287672a6461c3068beea3)
2022-05-29 22:48:47 -04:00
hondacrx 0cd59a5176 Handle deprecated SAI actions and events
Port From (https://github.com/TrinityCore/TrinityCore/commit/318e0e24066fc89a1d07a993fc19a5a9dd3a6fd4)
2022-05-29 21:05:29 -04:00
hondacrx b630cf134e Misc fixes 2022-05-29 21:00:58 -04:00
hondacrx d6c9594c20 Core/SAI: Change error to warning for unused parameters
Port From (https://github.com/TrinityCore/TrinityCore/commit/a19c71a77075b569192eca556635dba85ac6f2ec)
2022-05-29 20:59:55 -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 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 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 06da4c2dfd Core/SAI: Add a warning when a boolean value is outside of [0,1] range
Port From (https://github.com/TrinityCore/TrinityCore/commit/a85e77b47a66591944d1af56741fa0ddd317fd87)
2022-05-28 17:44:46 -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 558e976a5e Core/Movement: remove redundant method MovementGenerator::NotifyAIOnFinalize and use existing Finalize - MovementInform implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e0deaefd4e84c8069f6249778774f605fc5e628)
2022-05-26 20:08:35 -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 17ae1835d6 Core/SAI: Prevent loading invalid smart_scripts entry
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7956ffd1ea5e329caf79756e75c2016a7306185)
2022-05-26 16:52:22 -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