aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-04 18:31:18 -0600
committermegamage <none@none>2008-12-04 18:31:18 -0600
commit450c0a45b87fb043f39298cf94c7f7254ade2fc5 (patch)
tree44f20171e2a2932f42540b0ae9008680b6bfae6e
parent929f9f221d912d09afb07ddf80b2d2a59722e479 (diff)
*Fix a bug that Sathrovarr does not die.
--HG-- branch : trunk
-rw-r--r--src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
index 79d0d3766b8..f63f9b5b548 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
@@ -351,7 +351,7 @@ struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
}
}
- void JustDied(Unit *victim)
+ void JustDied(Unit *killer)
{
DoYell(SATH_SAY_DIE, LANG_UNIVERSAL, NULL);
DoPlaySoundToSet(m_creature, SATH_SOUND_DIE);
@@ -394,7 +394,7 @@ struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
{
if(((boss_kalecgosAI*)((Creature*)Kalecgos)->AI())->isBanished)
{
- m_creature->setDeathState(JUST_DIED);
+ m_creature->DealDamage(m_creature, m_creature->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
return;
}
else
@@ -578,7 +578,10 @@ void boss_kalecgosAI::UpdateAI(const uint32 diff)
if(Unit *Sath = Unit::GetUnit(*m_creature, SathGUID))
{
if(((boss_sathrovarrAI*)((Creature*)Sath)->AI())->isBanished)
- Sath->setDeathState(JUST_DIED);
+ {
+ Sath->DealDamage(Sath, Sath->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
+ return;
+ }
else
{
m_creature->CastSpell(m_creature, SPELL_BANISH, true);