aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/TempestKeep
diff options
context:
space:
mode:
authorlinencloth <none@none>2010-11-16 01:13:04 +0100
committerlinencloth <none@none>2010-11-16 01:13:04 +0100
commit8fae0c176d73a1606f26a5b0d7fc44f7a23ba49c (patch)
tree5504659fc056351c6ed350368afc7ea0a9d1a5db /src/server/scripts/Outland/TempestKeep
parent57c76407b05a919bad20008ffbfc1590a044d2ad (diff)
Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility --HG-- branch : trunk
Diffstat (limited to 'src/server/scripts/Outland/TempestKeep')
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
index 71e0f82fff7..287466b78e6 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
@@ -136,7 +136,7 @@ class boss_high_astromancer_solarian : public CreatureScript
me->SetArmor(defaultarmor);
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- me->SetVisibility(VISIBILITY_ON);
+ me->SetVisible(true);
me->SetFloatValue(OBJECT_FIELD_SCALE_X, defaultsize);
me->SetDisplayId(MODEL_HUMAN);
@@ -207,7 +207,7 @@ class boss_high_astromancer_solarian : public CreatureScript
if (Phase == 2)
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- me->SetVisibility(VISIBILITY_OFF);
+ me->SetVisible(false);
}
AppearDelay_Timer = 2000;
}
@@ -354,7 +354,7 @@ class boss_high_astromancer_solarian : public CreatureScript
SummonMinion(NPC_SOLARIUM_PRIEST, Portals[j][0], Portals[j][1], Portals[j][2]);
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- me->SetVisibility(VISIBILITY_ON);
+ me->SetVisible(true);
DoScriptText(SAY_SUMMON2, me);
AppearDelay = true;
@@ -389,7 +389,7 @@ class boss_high_astromancer_solarian : public CreatureScript
Phase = 4;
//To make sure she wont be invisible or not selecatble
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- me->SetVisibility(VISIBILITY_ON);
+ me->SetVisible(true);
DoScriptText(SAY_VOIDA, me);
DoScriptText(SAY_VOIDB, me);
me->SetArmor(WV_ARMOR);