From 82f45966fc00106b52294e4c01a2848ba24e2eb8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 17 Dec 2010 13:43:24 +0100 Subject: Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts) --HG-- branch : trunk --- .../scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/scripts/Kalimdor') diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp index 018af2b22b1..32dadcf802e 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp @@ -90,7 +90,7 @@ struct boss_twinemperorsAI : public ScriptedAI AfterTeleportTimer = 0; Abuse_Bug_Timer = 10000 + rand()%7000; BugsTimer = 2000; - me->clearUnitState(UNIT_STAT_STUNNED); + me->ClearUnitState(UNIT_STAT_STUNNED); DontYellWhenDead = false; EnrageTimer = 15*60000; } @@ -237,7 +237,7 @@ struct boss_twinemperorsAI : public ScriptedAI DoStopAttack(); DoResetThreat(); DoCast(me, SPELL_TWIN_TELEPORT_VISUAL); - me->addUnitState(UNIT_STAT_STUNNED); + me->AddUnitState(UNIT_STAT_STUNNED); AfterTeleport = true; AfterTeleportTimer = 2000; tspellcasted = false; @@ -249,9 +249,9 @@ struct boss_twinemperorsAI : public ScriptedAI { if (!tspellcasted) { - me->clearUnitState(UNIT_STAT_STUNNED); + me->ClearUnitState(UNIT_STAT_STUNNED); DoCast(me, SPELL_TWIN_TELEPORT); - me->addUnitState(UNIT_STAT_STUNNED); + me->AddUnitState(UNIT_STAT_STUNNED); } tspellcasted = true; @@ -259,7 +259,7 @@ struct boss_twinemperorsAI : public ScriptedAI if (AfterTeleportTimer <= diff) { AfterTeleport = false; - me->clearUnitState(UNIT_STAT_STUNNED); + me->ClearUnitState(UNIT_STAT_STUNNED); if (Unit *nearu = me->SelectNearestTarget(100)) { //DoYell(nearu->GetName(), LANG_UNIVERSAL, 0); -- cgit v1.2.3