[11840] Fix script command modify_npc_flag

Thanks to faq for pointing.
I checked both udb and ytdb, and they don't use this command yet;
If however you use it already check your scripts. (The toggle/add/remove flag must be set in `data_flags`) Sorry for the inconvenience.
Alos added a forgotten break.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-11-06 16:02:27 +01:00
parent 7246e51a13
commit 6b355bd987
4 changed files with 9 additions and 7 deletions

View file

@ -314,10 +314,9 @@ struct ScriptInfo
struct // SCRIPT_COMMAND_MODIFY_NPC_FLAGS (29)
{
uint32 flag; // datalong
uint32 creatureEntry; // datalong1
uint32 searchRadius; // datalong2
uint32 empty1; // datalong3
uint32 empty2; // datalong4
uint32 creatureEntry; // datalong2
uint32 searchRadius; // datalong3
uint32 empty1; // datalong4
uint32 data_flags; // data_flags
} npcFlag;