mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/SAI): fix parameters for action type "SMART_ACTION_UPDATE_TEMPLATE" (#2131)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1563920358511875161');
|
||||
|
||||
UPDATE `smart_scripts` SET `action_param2` = NOT `action_param3` WHERE `action_type` = 36;
|
||||
UPDATE `smart_scripts` SET `action_param3` = 0 WHERE `action_type` = 36;
|
||||
@@ -1299,7 +1299,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
|
||||
if (IsCreature(*itr))
|
||||
(*itr)->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, NULL, !e.action.updateTemplate.doNotChangeLevel);
|
||||
(*itr)->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, NULL, e.action.updateTemplate.updateLevel != 0);
|
||||
|
||||
delete targets;
|
||||
break;
|
||||
|
||||
@@ -466,7 +466,7 @@ enum SMART_ACTION
|
||||
SMART_ACTION_CALL_KILLEDMONSTER = 33, // CreatureId,
|
||||
SMART_ACTION_SET_INST_DATA = 34, // Field, Data
|
||||
SMART_ACTION_SET_INST_DATA64 = 35, // Field,
|
||||
SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry, Team, doNotChangeLevel
|
||||
SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry, UpdateLevel
|
||||
SMART_ACTION_DIE = 37, // No Params
|
||||
SMART_ACTION_SET_IN_COMBAT_WITH_ZONE = 38, // No Params
|
||||
SMART_ACTION_CALL_FOR_HELP = 39, // Radius, With Emote
|
||||
@@ -810,8 +810,7 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 creature;
|
||||
uint32 team;
|
||||
uint32 doNotChangeLevel;
|
||||
uint32 updateLevel;
|
||||
} updateTemplate;
|
||||
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user