feat(Core/SmartScripts): SMART_ACTION_DISABLE_EVADE (#9772)

* Update SmartScriptMgr.h

* Update SmartScript.cpp

* Update SmartAI.h

* Update SmartAI.cpp
This commit is contained in:
IntelligentQuantum
2021-12-20 01:00:55 +03:30
committed by GitHub
parent 7a612f3dd9
commit f7ff583b7e
4 changed files with 29 additions and 1 deletions

View File

@@ -585,7 +585,7 @@ enum SMART_ACTION
SMART_ACTION_RISE_UP = 114, // distance
SMART_ACTION_RANDOM_SOUND = 115, // SoundId1, SoundId2, SoundId3, SoundId4, onlySelf
SMART_ACTION_SET_CORPSE_DELAY = 116, // TODO: NOT SUPPORTED YET
SMART_ACTION_DISABLE_EVADE = 117, // TODO: NOT SUPPORTED YET
SMART_ACTION_DISABLE_EVADE = 117, // 0/1 (1 = disabled, 0 = enabled)
SMART_ACTION_GO_SET_GO_STATE = 118, // TODO: NOT SUPPORTED YET
SMART_ACTION_SET_CAN_FLY = 119, // TODO: NOT SUPPORTED YET
SMART_ACTION_REMOVE_AURAS_BY_TYPE = 120, // TODO: NOT SUPPORTED YET
@@ -1274,6 +1274,11 @@ struct SmartAction
uint32 isNegative;
uint32 instanceTarget;
} doAction;
struct
{
uint32 disable;
} disableEvade;
//! Note for any new future actions
//! All parameters must have type uint32