mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
*Implement spellhaste mod for Channeled spells.
*Fix build with VCPP. --HG-- branch : trunk
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user