From f00befd879b74db116d657080c26a5055ee43b97 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 5 Feb 2009 18:02:22 -0600 Subject: *Fix a typo that makes linked spells not work. --HG-- branch : trunk --- src/game/Spell.cpp | 4 ++-- src/game/Unit.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index b641ee3fa78..73b0f2af528 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1219,7 +1219,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) { for(std::vector::const_iterator i = spell_triggered->begin(); i != spell_triggered->end(); ++i) { - if(spell_triggered < 0) + if(*i < 0) unit->RemoveAurasDueToSpell(-(*i)); else unit->CastSpell(unit, *i, true, 0, 0, m_caster->GetGUID()); @@ -2295,7 +2295,7 @@ void Spell::cast(bool skipCheck) { for(std::vector::const_iterator i = spell_triggered->begin(); i != spell_triggered->end(); ++i) { - if(spell_triggered < 0) + if(*i < 0) m_caster->RemoveAurasDueToSpell(-(*i)); else m_caster->CastSpell(m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster, *i, true); diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 89eeeb782ad..748aaa4cab8 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4702,7 +4702,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode) { for(std::vector::const_iterator itr = spell_triggered->begin(); itr != spell_triggered->end(); ++itr) { - if(spell_triggered < 0) + if(*itr < 0) RemoveAurasDueToSpell(-(*itr)); else if(Unit* caster = Aur->GetCaster()) CastSpell(this, *itr, true, 0, 0, caster->GetGUID()); -- cgit v1.2.3