*Implement spellhaste mod for Channeled spells.

*Fix build with VCPP.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-02-11 20:10:00 +01:00
parent 651e7c29eb
commit 40bf3b630a
9 changed files with 77 additions and 16 deletions

View File

@@ -2262,6 +2262,10 @@ void Spell::EffectApplyAura(uint32 i)
//apply mods only here, area auras don't have duration
duration = caster->ModSpellDuration(m_spellInfo, i, unitTarget, duration);
//mod duration of channeled aura by spell haste
if (IsChanneledSpell(m_spellInfo))
m_caster->ModSpellCastTime(m_spellInfo, duration);
// if Aura removed and deleted, do not continue.
if(duration== 0 && !(Aur->IsPermanent()))
{