aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkandera <kanderacutie@hotmail.com>2012-03-27 14:46:19 -0300
committerkandera <kanderacutie@hotmail.com>2012-03-27 14:46:19 -0300
commitdef4643896c06af3b7ea89afe7cac72518166856 (patch)
treec753495bca3c7ed398b833626704142d46fa122e /src
parent38deaa5dba84b98cc0d131efd1c509286f9e2902 (diff)
Core/Spells: correctly fix the issue with dispel over time auras. thx shauren
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index a9e1b964b1c..ee5e4bc0efa 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4984,7 +4984,7 @@ SpellCastResult Spell::CheckCast(bool strict)
break;
}
- if (!hasNonDispelEffect && !hasDispellableAura && m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL) && m_spellInfo->CalcPowerCost(m_caster, SPELL_SCHOOL_MASK_NONE))
+ if (!hasNonDispelEffect && !hasDispellableAura && m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL) && !IsTriggered())
return SPELL_FAILED_NOTHING_TO_DISPEL;
for (int i = 0; i < MAX_SPELL_EFFECTS; i++)