diff options
| author | QAston <none@none> | 2009-03-02 23:37:24 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-03-02 23:37:24 +0100 |
| commit | 1ebade03d51b2f6aa1bde099776f477b93c4e89e (patch) | |
| tree | ae0e389e0ae2dba970352ff70f44d98051127b6b /src/game/SpellMgr.cpp | |
| parent | 352df954f6e1a8542118e8108928ea5fe268f431 (diff) | |
*Fix crash.
*Prevent applying cast time mod for spell twice.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
| -rw-r--r-- | src/game/SpellMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 8a0eb06ab11..dd4edcb7087 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -245,7 +245,7 @@ uint32 GetSpellCastTime(SpellEntry const* spellInfo, Spell const* spell) int32 castTime = spellCastTimeEntry->CastTime; if (spell && spell->GetCaster()) - spell->GetCaster()->ModSpellCastTime(spellInfo, castTime); + spell->GetCaster()->ModSpellCastTime(spellInfo, castTime, spell); if (spellInfo->Attributes & SPELL_ATTR_RANGED && (!spell || !(spell->IsAutoRepeat()))) castTime += 500; |
