mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Core/SmartScripts): Add a warning when a boolean value is outside of [0,1] range (#10038)
This commit is contained in:
committed by
GitHub
parent
3cbe23865f
commit
e482cce164
@@ -26,6 +26,8 @@
|
||||
#include "SpellMgr.h"
|
||||
#include "Unit.h"
|
||||
|
||||
typedef uint32 SAIBool;
|
||||
|
||||
struct WayPoint
|
||||
{
|
||||
WayPoint(uint32 _id, float _x, float _y, float _z, float _o, uint32 _delay)
|
||||
@@ -214,7 +216,7 @@ struct SmartEvent
|
||||
{
|
||||
uint32 cooldownMin;
|
||||
uint32 cooldownMax;
|
||||
uint32 playerOnly;
|
||||
SAIBool playerOnly;
|
||||
uint32 creature;
|
||||
} kill;
|
||||
|
||||
@@ -235,7 +237,7 @@ struct SmartEvent
|
||||
uint32 maxDist;
|
||||
uint32 cooldownMin;
|
||||
uint32 cooldownMax;
|
||||
uint32 playerOnly;
|
||||
SAIBool playerOnly;
|
||||
} los;
|
||||
|
||||
struct
|
||||
@@ -665,7 +667,7 @@ struct SmartAction
|
||||
{
|
||||
uint32 textGroupID;
|
||||
uint32 duration;
|
||||
uint32 useTalkTarget;
|
||||
SAIBool useTalkTarget;
|
||||
} talk;
|
||||
|
||||
struct
|
||||
@@ -682,7 +684,7 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 sound;
|
||||
uint32 onlySelf;
|
||||
SAIBool onlySelf;
|
||||
} sound;
|
||||
|
||||
struct
|
||||
@@ -691,7 +693,7 @@ struct SmartAction
|
||||
uint32 sound2;
|
||||
uint32 sound3;
|
||||
uint32 sound4;
|
||||
uint32 onlySelf;
|
||||
SAIBool onlySelf;
|
||||
} randomSound;
|
||||
|
||||
struct
|
||||
@@ -724,7 +726,7 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 questID;
|
||||
uint32 directAdd;
|
||||
SAIBool directAdd;
|
||||
} questOffer;
|
||||
|
||||
struct
|
||||
@@ -774,7 +776,7 @@ struct SmartAction
|
||||
uint32 creature;
|
||||
uint32 type;
|
||||
uint32 duration;
|
||||
uint32 attackInvoker;
|
||||
SAIBool attackInvoker;
|
||||
uint32 attackScriptOwner;
|
||||
} summonCreature;
|
||||
|
||||
@@ -806,12 +808,12 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 attack;
|
||||
SAIBool attack;
|
||||
} autoAttack;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 move;
|
||||
SAIBool move;
|
||||
} combatMove;
|
||||
|
||||
struct
|
||||
@@ -877,13 +879,13 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 creature;
|
||||
uint32 updateLevel;
|
||||
SAIBool updateLevel;
|
||||
} updateTemplate;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 range;
|
||||
uint32 withEmote;
|
||||
SAIBool withEmote;
|
||||
} callHelp;
|
||||
|
||||
struct
|
||||
@@ -921,7 +923,7 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 state;
|
||||
SAIBool state;
|
||||
} visibility;
|
||||
|
||||
struct
|
||||
@@ -943,9 +945,9 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 run;
|
||||
SAIBool run;
|
||||
uint32 pathID;
|
||||
uint32 repeat;
|
||||
SAIBool repeat;
|
||||
uint32 quest;
|
||||
uint32 despawnTime;
|
||||
uint32 reactState;
|
||||
@@ -960,7 +962,7 @@ struct SmartAction
|
||||
{
|
||||
uint32 despawnTime;
|
||||
uint32 quest;
|
||||
uint32 fail;
|
||||
SAIBool fail;
|
||||
} wpStop;
|
||||
|
||||
struct
|
||||
@@ -981,19 +983,19 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 run;
|
||||
SAIBool run;
|
||||
} setRun;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 fly;
|
||||
SAIBool fly;
|
||||
uint32 speed;
|
||||
uint32 disableGravity;
|
||||
} setFly;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 swim;
|
||||
SAIBool swim;
|
||||
} setSwim;
|
||||
|
||||
struct
|
||||
@@ -1005,7 +1007,7 @@ struct SmartAction
|
||||
{
|
||||
uint32 counterId;
|
||||
uint32 value;
|
||||
uint32 reset;
|
||||
SAIBool reset;
|
||||
uint32 subtract;
|
||||
} setCounter;
|
||||
|
||||
@@ -1079,9 +1081,9 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 withDelayed;
|
||||
SAIBool withDelayed;
|
||||
uint32 spell_id;
|
||||
uint32 withInstant;
|
||||
SAIBool withInstant;
|
||||
} interruptSpellCasting;
|
||||
|
||||
struct
|
||||
@@ -1114,10 +1116,10 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 pointId;
|
||||
uint32 transport;
|
||||
SAIBool transport;
|
||||
uint32 controlled;
|
||||
uint32 ContactDistance;
|
||||
} MoveToPos;
|
||||
} moveToPos;
|
||||
|
||||
struct
|
||||
{
|
||||
@@ -1148,7 +1150,7 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 root;
|
||||
SAIBool root;
|
||||
} setRoot;
|
||||
|
||||
struct
|
||||
@@ -1218,7 +1220,7 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 id;
|
||||
uint32 force;
|
||||
SAIBool force;
|
||||
} loadEquipment;
|
||||
|
||||
struct
|
||||
@@ -1295,7 +1297,7 @@ struct SmartAction
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 disable;
|
||||
SAIBool disable;
|
||||
} disableEvade;
|
||||
|
||||
struct
|
||||
@@ -1408,15 +1410,15 @@ struct SmartTarget
|
||||
struct
|
||||
{
|
||||
uint32 maxDist;
|
||||
uint32 playerOnly;
|
||||
SAIBool playerOnly;
|
||||
uint32 powerType;
|
||||
} hostilRandom;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 maxDist;
|
||||
uint32 playerOnly;
|
||||
uint32 isInLos;
|
||||
SAIBool playerOnly;
|
||||
SAIBool isInLos;
|
||||
} farthest;
|
||||
|
||||
struct
|
||||
@@ -1490,14 +1492,14 @@ struct SmartTarget
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 useCharmerOrOwner;
|
||||
SAIBool useCharmerOrOwner;
|
||||
} owner;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 entry;
|
||||
uint32 dist;
|
||||
uint32 dead;
|
||||
SAIBool dead;
|
||||
} closest;
|
||||
|
||||
struct
|
||||
@@ -1510,13 +1512,13 @@ struct SmartTarget
|
||||
struct
|
||||
{
|
||||
uint32 maxDist;
|
||||
uint32 playerOnly;
|
||||
SAIBool playerOnly;
|
||||
} closestAttackable;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 maxDist;
|
||||
uint32 playerOnly;
|
||||
SAIBool playerOnly;
|
||||
} closestFriendly;
|
||||
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user