aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-04 16:37:22 -0600
committermegamage <none@none>2008-12-04 16:37:22 -0600
commit717885da7dd51c50be80e72c3752ccfe8fa5bf5d (patch)
tree2cafa3fc083ffb3fec0d0f062733f0223477b980 /src
parentafc6dc7c48ef00f68996dc3643b6936f91aa401b (diff)
*Fix script bug of eredar twins.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
index 0bcd6a0eacf..9df47ed30e7 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
@@ -138,7 +138,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
{
Unit* Temp = Unit::GetUnit((*m_creature),pInstance->GetData64(DATA_ALYTHESS));
if (Temp && Temp->isAlive() && !(Temp->getVictim()))
- Temp->getThreatManager().addThreat(who,0.0f);
+ ((Creature*)Temp)->AI()->AttackStart(who);
}
}
@@ -341,9 +341,9 @@ CreatureAI* GetAI_boss_sacrolash(Creature *_Creature)
return new boss_sacrolashAI (_Creature);
};
-struct TRINITY_DLL_DECL boss_alythessAI : public ScriptedAI
+struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
{
- boss_alythessAI(Creature *c) : ScriptedAI(c)
+ boss_alythessAI(Creature *c) : Scripted_NoMovementAI(c)
{
pInstance = (c->GetInstanceData()) ? ((ScriptedInstance*)c->GetInstanceData()) : NULL;
Reset();
@@ -404,7 +404,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public ScriptedAI
{
Unit* Temp = Unit::GetUnit((*m_creature),pInstance->GetData64(DATA_SACROLASH));
if (Temp && Temp->isAlive() && !(Temp->getVictim()))
- Temp->getThreatManager().addThreat(who,0.0f);
+ ((Creature*)Temp)->AI()->AttackStart(who);
}
}
@@ -412,7 +412,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public ScriptedAI
{
if (!InCombat)
{
- ScriptedAI::AttackStart(who);
+ Scripted_NoMovementAI::AttackStart(who);
}
}