diff options
author | QAston <none@none> | 2009-01-20 20:32:23 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-01-20 20:32:23 +0100 |
commit | 15403f0a8fb9c4980c7d5b29412c5427eda59482 (patch) | |
tree | 1d36376a4c82637247351cf21bd8e30c2580cfec /src/game/Spell.cpp | |
parent | 013dd9bedb72c9af2df9587b55200dad5479807c (diff) |
*Fix bug with mindcontrol when aura interrupted on target is still on caster
*Fix bug with "stucked succubus"
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index ddfb9c01be5..989aa37bc5c 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2114,7 +2114,7 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura) } } -void Spell::cancel() +void Spell::cancel(bool report) { if(m_spellState == SPELL_STATE_FINISHED) return; @@ -2144,7 +2144,7 @@ void Spell::cancel() m_caster->RemoveAurasDueToCasterSpell(m_spellInfo->Id, m_caster->GetGUID()); SendChannelUpdate(0); SendInterrupted(0); - SendCastResult(SPELL_FAILED_INTERRUPTED); + SendCastResult(report ? SPELL_FAILED_INTERRUPTED : SPELL_FAILED_DONT_REPORT); } break; default: |