Core/Scripts: Extended SMART_ACTION_SET_INST_DATA to also set BossStates. (#16739)

Scripts/Dire Maul: Initialize boss states array so it may be called from SmartAI. (Ref #6429)
This commit is contained in:
Aokromes committed 2016-07-20 16:44:24 +02:00
1 parent ea24f369fd
commit 4e31162a42
4 files changed
+68 -9

No files matched your search

@@ -470,7 +470,7 @@ enum SMART_ACTION
SMART_ACTION_RANDOM_PHASE_RANGE = 31, // PhaseMin, PhaseMax
SMART_ACTION_RESET_GOBJECT = 32, //
SMART_ACTION_CALL_KILLEDMONSTER = 33, // CreatureId,
SMART_ACTION_SET_INST_DATA = 34, // Field, Data
SMART_ACTION_SET_INST_DATA = 34, // Field, Data, Type (0 = SetData, 1 = SetBossState)
SMART_ACTION_SET_INST_DATA64 = 35, // Field,
SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry
SMART_ACTION_DIE = 37, // No Params
@@ -716,6 +716,7 @@ struct SmartAction
{
uint32 field;
uint32 data;
uint32 type;
} setInstanceData;
struct