diff options
| author | QAston <none@none> | 2009-02-11 20:10:00 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-02-11 20:10:00 +0100 |
| commit | 40bf3b630a320fc7ac72e8ce5fabb59be7b090a1 (patch) | |
| tree | c8e86fb2b8a9bec8611ad0780e33796f710d8bd0 /src/game/SpellMgr.cpp | |
| parent | 651e7c29eb6b73489dd27d4f67c89bf539c8d68a (diff) | |
*Implement spellhaste mod for Channeled spells.
*Fix build with VCPP.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
| -rw-r--r-- | src/game/SpellMgr.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 07f9c781d69..d6e324bdf6f 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -244,19 +244,8 @@ uint32 GetSpellCastTime(SpellEntry const* spellInfo, Spell const* spell) int32 castTime = spellCastTimeEntry->CastTime; - if (spell) - { - if(Player* modOwner = spell->GetCaster()->GetSpellModOwner()) - modOwner->ApplySpellMod(spellInfo->Id, SPELLMOD_CASTING_TIME, castTime, spell); - - if( !(spellInfo->Attributes & (SPELL_ATTR_UNK4|SPELL_ATTR_UNK5)) ) - castTime = int32(castTime * spell->GetCaster()->GetFloatValue(UNIT_MOD_CAST_SPEED)); - else - { - if (spell->IsRangedSpell() && !spell->IsAutoRepeat()) - castTime = int32(castTime * spell->GetCaster()->m_modAttackSpeedPct[RANGED_ATTACK]); - } - } + if (spell && spell->GetCaster()) + spell->GetCaster()->ModSpellCastTime(spellInfo, castTime); if (spellInfo->Attributes & SPELL_ATTR_RANGED && (!spell || !(spell->IsAutoRepeat()))) castTime += 500; |
