diff options
| author | QAston <none@none> | 2009-03-14 12:13:22 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-03-14 12:13:22 +0100 |
| commit | 648a8d505fe188ac5bc8b3fec045a1730c8e990a (patch) | |
| tree | bf33fc01c1e46789d324cd98784e2de9a9159f1d /src/game/SpellAuras.cpp | |
| parent | c45fe6969c33e3eaf8662cfcc79c63e4071cdb7c (diff) | |
*Fix hunter's tame beast.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index efca1bdc600..ff818b7dbc8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -433,7 +433,12 @@ m_updated(false), m_isRemovedOnShapeLost(true), m_in_use(false) sLog.outDebug("Aura: construct Spellid : %u, Aura : %u Duration : %d Target : %d Damage : %d", m_spellProto->Id, m_spellProto->EffectApplyAuraName[eff], m_maxduration, m_spellProto->EffectImplicitTargetA[eff],damage); m_effIndex = eff; - SetModifier(AuraType(m_spellProto->EffectApplyAuraName[eff]), damage, m_spellProto->EffectAmplitude[eff], m_spellProto->EffectMiscValue[eff]); + int32 periodicTime = m_spellProto->EffectAmplitude[eff]; + //apply casting time mods for channeled spells + if (caster && IsChanneledSpell(m_spellProto)) + caster->ModSpellCastTime(m_spellProto, periodicTime); + + SetModifier(AuraType(m_spellProto->EffectApplyAuraName[eff]), damage,periodicTime , m_spellProto->EffectMiscValue[eff]); // Apply periodic time mod if(modOwner && m_modifier.periodictime) |
