feat(Core/SmartScripts): SMART_ACTION_SET_MOVEMENT_SPEED (#10018)

This commit is contained in:
IntelligentQuantum
2022-01-05 20:40:19 +03:30
committed by GitHub
parent 5f9235a62d
commit 2bc373b4f6
3 changed files with 46 additions and 0 deletions

View File

@@ -607,6 +607,7 @@ enum SMART_ACTION
// SMART_ACTION_INVOKER_CAST = 134, // TODO: solve name conflicts
SMART_ACTION_TC_END = 135, // placeholder
SMART_ACTION_SET_MOVEMENT_SPEED = 136, // movementType, speedInteger, speedFraction
SMART_ACTION_SET_HEALTH_PCT = 142, // percent
@@ -1289,6 +1290,13 @@ struct SmartAction
uint32 timer;
} corpseDelay;
struct
{
uint32 movementType;
uint32 speedInteger;
uint32 speedFraction;
} movementSpeed;
struct
{
uint32 percent;