aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:25:55 -0600
committermegamage <none@none>2009-02-01 16:25:55 -0600
commit20b8efd93244c0257d49e4d0a9c44b9df95a5946 (patch)
tree69bbf3648974c3c1f3d4b9fb7f901a3ebf71b222 /src/game/Spell.cpp
parent867b90045b81a680f326aa9f698c4270af500581 (diff)
Add some function for find/remove aura and use it in some cases
Signed-off-by: DiSlord <dislord@nomail.com> --HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index a3e424344d8..5e7c1aefe4e 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2064,11 +2064,11 @@ void Spell::cancel(bool report)
{
Unit* unit = m_caster->GetGUID()==(*ihit).targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, ihit->targetGUID);
if( unit && unit->isAlive() )
- unit->RemoveAurasDueToCasterSpell(m_spellInfo->Id, m_caster->GetGUID());
+ unit->RemoveAurasByCasterSpell(m_spellInfo->Id, m_caster->GetGUID());
}
}
- m_caster->RemoveAurasDueToCasterSpell(m_spellInfo->Id, m_caster->GetGUID());
+ m_caster->RemoveAurasByCasterSpell(m_spellInfo->Id, m_caster->GetGUID());
SendChannelUpdate(0);
SendInterrupted(0);
SendCastResult(report ? SPELL_FAILED_INTERRUPTED : SPELL_FAILED_DONT_REPORT);