*Fix the bug that proc debuff applied on caster.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-26 16:50:35 -06:00
parent b24cc17a4b
commit 9bd4507f92
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -1140,6 +1140,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;