aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-27 11:31:14 -0600
committermegamage <none@none>2008-12-27 11:31:14 -0600
commit8a337e26c5c41bc126f6fd0b3bfbb783fc6b8aa4 (patch)
tree3d50697c51d344a193e1510aae56ce217bc83acb /src/game/SpellAuras.cpp
parentbf6e13c8bde0ef08691b4831a0732caf06f3c0c1 (diff)
parentd5e9d0b2c4389998cdbed7cf8fc6fb81c2a22829 (diff)
*HG 681.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 26725388f7e..90e67dfe344 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1190,10 +1190,6 @@ void Aura::TriggerSpell()
uint64 originalCasterGUID = GetCasterGUID();
SpellEntry const *triggeredSpellInfo = sSpellStore.LookupEntry(trigger_spell_id);
- SpellRangeEntry const* srange = sSpellRangeStore.LookupEntry(triggeredSpellInfo->rangeIndex);
- if(!GetSpellMaxRange(srange))
- target = caster; //for druid dispel poison
-
SpellEntry const *auraSpellInfo = GetSpellProto();
uint32 auraId = auraSpellInfo->Id;
@@ -1881,6 +1877,8 @@ void Aura::TriggerSpell()
}
}
}
+ if(!GetSpellMaxRange(sSpellRangeStore.LookupEntry(triggeredSpellInfo->rangeIndex)))
+ target = m_target; //for druid dispel poison
m_target->CastSpell(target, triggeredSpellInfo, true, 0, this, originalCasterGUID);
}