Damage over time spells should not cause spell pushback.

Based on patch by Toni.Shocker.
Fixes issue #3551

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-23 15:06:51 -07:00
parent 29daa0bb84
commit 1691065162
+1 -1
View File
@@ -826,7 +826,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
if (spell->getState() == SPELL_STATE_CASTING) if (spell->getState() == SPELL_STATE_CASTING)
{ {
uint32 channelInterruptFlags = spell->m_spellInfo->ChannelInterruptFlags; uint32 channelInterruptFlags = spell->m_spellInfo->ChannelInterruptFlags;
if (channelInterruptFlags & CHANNEL_FLAG_DELAY) if (channelInterruptFlags & CHANNEL_FLAG_DELAY != 0 && damagetype != DOT)
spell->DelayedChannel(); spell->DelayedChannel();
} }
} }