mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
*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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user