feat(Core/SAI): Implement SMART_ACTION_SET_GUID (#15978)

* feat(Core/SAI): Implement SMART_ACTION_SET_GUID

* Update SmartScript.cpp

* Update src/server/game/AI/SmartScripts/SmartScriptMgr.h

* Update SmartScript.cpp
This commit is contained in:
Skjalf
2023-04-16 21:00:44 -03:00
committed by GitHub
parent 8fa0953671
commit f3c63f9662
3 changed files with 35 additions and 1 deletions

View File

@@ -692,8 +692,9 @@ enum SMART_ACTION
SMART_ACTION_CU_ENCOUNTER_START = 222, // Resets cooldowns on all targets and removes Heroism debuff(s)
SMART_ACTION_DO_ACTION = 223, // ActionId
SMART_ACTION_ATTACK_STOP = 224, //
SMART_ACTION_SET_GUID = 225, // Sends the invoker's or the base object's own ObjectGuid to target
SMART_ACTION_AC_END = 225, // placeholder
SMART_ACTION_AC_END = 226, // placeholder
};
enum class SmartActionSummonCreatureFlags
@@ -1357,6 +1358,12 @@ struct SmartAction
{
uint32 entry;
} cinematic;
struct
{
SAIBool invokerGUID;
uint32 index;
} setGuid;
//! Note for any new future actions
//! All parameters must have type uint32