[7094] Implemented spell interrupt flag 0x10

This commit is contained in:
arrai 2009-01-17 02:36:13 +01:00
parent a1e0900d37
commit 2cfebd6a57
4 changed files with 15 additions and 3 deletions

View file

@ -799,7 +799,12 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
if(Spell* spell = pVictim->m_currentSpells[i])
if(spell->getState() == SPELL_STATE_PREPARING)
spell->Delayed();
{
if(spell->m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_ABORT_ON_DMG)
pVictim->InterruptSpell(i);
else
spell->Delayed();
}
}
}