aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index b28edb29ef0..9d1b5c98651 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1652,7 +1652,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
{
for (WorldObject* target : targets)
if (IsCreature(target))
- target->ToUnit()->AddNpcFlag(NPCFlags(e.action.flag.flag));
+ target->ToUnit()->SetNpcFlag(NPCFlags(e.action.flag.flag));
break;
}
case SMART_ACTION_REMOVE_NPC_FLAG:
@@ -1805,7 +1805,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
// pet talent points
break;
case 2:
- target->ToUnit()->AddVisFlags(UnitVisFlags(e.action.setunitByte.byte1));
+ target->ToUnit()->SetVisFlag(UnitVisFlags(e.action.setunitByte.byte1));
break;
case 3:
target->ToUnit()->SetAnimTier(AnimTier(e.action.setunitByte.byte1));
@@ -1828,7 +1828,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
// pet talent points
break;
case 2:
- target->ToUnit()->RemoveVisFlags(UnitVisFlags(e.action.setunitByte.byte1));
+ target->ToUnit()->RemoveVisFlag(UnitVisFlags(e.action.setunitByte.byte1));
break;
case 3:
target->ToUnit()->SetAnimTier(AnimTier::Ground);
@@ -2369,7 +2369,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (IsUnit(target))
{
if (e.action.setImmunePC.immunePC)
- target->ToUnit()->AddUnitFlag(UNIT_FLAG_IMMUNE_TO_PC);
+ target->ToUnit()->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_PC);
else
target->ToUnit()->RemoveUnitFlag(UNIT_FLAG_IMMUNE_TO_PC);
}
@@ -2383,7 +2383,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (IsUnit(target))
{
if (e.action.setImmuneNPC.immuneNPC)
- target->ToUnit()->AddUnitFlag(UNIT_FLAG_IMMUNE_TO_NPC);
+ target->ToUnit()->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_NPC);
else
target->ToUnit()->RemoveUnitFlag(UNIT_FLAG_IMMUNE_TO_NPC);
}
@@ -2397,7 +2397,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (IsUnit(target))
{
if (e.action.setUninteractible.uninteractible)
- target->ToUnit()->AddUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
+ target->ToUnit()->SetUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
else
target->ToUnit()->RemoveUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
}