diff options
author | megamage <none@none> | 2009-02-05 18:02:22 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-05 18:02:22 -0600 |
commit | f00befd879b74db116d657080c26a5055ee43b97 (patch) | |
tree | a7c444a92e44ed7713d6cc32895f1fc00d611cdd /src/game/Spell.cpp | |
parent | 2aff5260eada5a9a03a56ebce91f775105d7c92b (diff) |
*Fix a typo that makes linked spells not work.
--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 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<int32>::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<int32>::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); |