*Fix crash.
*Prevent applying cast time mod for spell twice. --HG-- branch : trunk
This commit is contained in:
1 parent
352df954f6
commit
1ebade03d5
6 files changed
+61
-33
No files matched your search
+1
-1
@@ -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