mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
*Fix crash.
*Prevent applying cast time mod for spell twice. --HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user