mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7094] Implemented spell interrupt flag 0x10
This commit is contained in:
parent
a1e0900d37
commit
2cfebd6a57
4 changed files with 15 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue