feat(Core/SAI): implemented a new SAI action type SMART_ACTION_DO_ACTION (#8375)

* feat(Core/SAI): implemented a new SAI action type SMART_ACTION_DO_ACTION
This will give possibility to trigger certain actions on instance scripts or creatures/gobjects

* yet we still love you "blank line" xD
This commit is contained in:
Andrius Peleckas
2021-10-14 15:06:28 +03:00
committed by GitHub
parent 9e3949232c
commit 5d73180c61
3 changed files with 57 additions and 1 deletions

View File

@@ -629,8 +629,9 @@ enum SMART_ACTION
SMART_ACTION_PLAYER_TALK = 220, // acore_string.entry, yell? (0/1)
SMART_ACTION_VORTEX_SUMMON = 221, // entry, duration (0 = perm), spiral scaling, spiral appearance, range max, phi_delta <-- yes confusing math, try it ingame and see, my lovely AC boys!
SMART_ACTION_CU_ENCOUNTER_START = 222, // Resets cooldowns on all targets and removes Heroism debuff(s)
SMART_ACTION_DO_ACTION = 223, // ActionId
SMART_ACTION_AC_END = 223, // placeholder
SMART_ACTION_AC_END = 224, // placeholder
};
struct SmartAction
@@ -1262,6 +1263,12 @@ struct SmartAction
uint32 phi_delta;
} summonVortex;
struct
{
uint32 actionId;
uint32 isNegative;
uint32 instanceTarget;
} doAction;
//! Note for any new future actions
//! All parameters must have type uint32