mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*Fix crash.
*Prevent applying cast time mod for spell twice. --HG-- branch : trunk
This commit is contained in:
@@ -2289,7 +2289,7 @@ void Spell::handle_immediate()
|
||||
if (duration)
|
||||
{
|
||||
//apply haste mods
|
||||
m_caster->ModSpellCastTime(m_spellInfo, duration);
|
||||
m_caster->ModSpellCastTime(m_spellInfo, duration, this);
|
||||
// Apply duration mod
|
||||
if(Player* modOwner = m_caster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);
|
||||
|
||||
Reference in New Issue
Block a user