aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarjuuk <none@none>2011-01-06 21:41:57 +0100
committerMachiavelli <machiavelli.trinity@gmail.com>2011-01-06 21:41:57 +0100
commit34aae5610411afa883bdc73ba068f06d26bc74e9 (patch)
treeac4711a791c0bf397c58e84ecfa453a616a6823d
parent06314c9387fb497da90fe040a4224ff117ada98c (diff)
Scripts/Zul'Gurub: High Priest Thekal will no longer die inbetween his two phases
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
-rw-r--r--src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp
index a752a2a78c9..9462162a59b 100644
--- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp
@@ -178,6 +178,8 @@ class boss_thekal : public CreatureScript
if (!PhaseTwo && !WasDead && !HealthAbovePct(5))
{
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->SetStandState(UNIT_STAND_STATE_SLEEP);
me->AttackStop();
@@ -398,6 +400,8 @@ class mob_zealot_lorkhan : public CreatureScript
if (!HealthAbovePct(5))
{
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->SetStandState(UNIT_STAND_STATE_SLEEP);
me->setFaction(35);
@@ -548,6 +552,8 @@ class mob_zealot_zath : public CreatureScript
if (!HealthAbovePct(5))
{
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
+ me->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->SetStandState(UNIT_STAND_STATE_SLEEP);
me->setFaction(35);