aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-26 18:22:01 -0600
committermegamage <none@none>2008-12-26 18:22:01 -0600
commitce5d6610616a9b5f5ce625332ed26cd7b4f455e5 (patch)
treef500314d8997e14233fc5a5d8220e1ae1f350006 /src/game/SpellAuras.cpp
parent1892a6dbea799a8d66778e721d134650642e487a (diff)
parent4d86f8e6796548f1b76cc19c7f9e5f5c58c7e0fa (diff)
*Update to Trinity 676.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 97037976e97..26725388f7e 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1190,6 +1190,10 @@ 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;