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/SpellEffects.cpp | |
parent | 352df954f6e1a8542118e8108928ea5fe268f431 (diff) |
*Fix crash.
*Prevent applying cast time mod for spell twice.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 967b3407326..4792848f48f 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2264,7 +2264,7 @@ void Spell::EffectApplyAura(uint32 i) //mod duration of channeled aura by spell haste if (IsChanneledSpell(m_spellInfo)) - caster->ModSpellCastTime(m_spellInfo, duration); + caster->ModSpellCastTime(m_spellInfo, duration, this); // if Aura removed and deleted, do not continue. if(duration== 0 && !(Aur->IsPermanent())) @@ -4766,13 +4766,13 @@ void Spell::EffectScriptEffect(uint32 effIndex) unitTarget->HandleEmoteCommand(EMOTE_STATE_DANCE); break; } - // Escape artist
- case 20589:
- {
- if(!unitTarget)
- return;
- // It is said that removing effects by script should include dispel resist mods
- unitTarget->RemoveSpellsCausingAuraWithDispel(SPELL_AURA_MOD_ROOT, this);
+ // Escape artist + case 20589: + { + if(!unitTarget) + return; + // It is said that removing effects by script should include dispel resist mods + unitTarget->RemoveSpellsCausingAuraWithDispel(SPELL_AURA_MOD_ROOT, this); unitTarget->RemoveSpellsCausingAuraWithDispel(SPELL_AURA_MOD_DECREASE_SPEED, this); } // Mirren's Drinking Hat |