*Do not trigger spells with triggers with scripts. This fixes the bug that shadow fissure of Kel'thuzad deals damage without delay.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-09 16:18:08 -05:00
parent 2625b4b6c6
commit 63c07a5767
6 changed files with 30 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
#include "NullCreatureAI.h"
#include "Creature.h"
#include "TemporarySummon.h"
void PassiveAI::UpdateAI(const uint32)
{
@@ -68,3 +69,13 @@ void CritterAI::EnterEvadeMode()
me->SetControlled(false, UNIT_STAT_FLEEING);
CreatureAI::EnterEvadeMode();
}
void TriggerAI::UpdateAI(const uint32 diff)
{
if(!casted)
{
casted = true;
if(me->m_spells[0] && me->isSummon())
me->CastSpell(me, me->m_spells[0], false, 0, 0, ((TempSummon*)me)->GetSummonerGUID());
}
}