From 5154f51633571460924f161940d18a23c8dfb1ee Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 23 Dec 2008 16:02:32 -0600 Subject: *Fix a bug that some proc buffs are casted on targets but not self. --HG-- branch : trunk --- src/game/Unit.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 2a0787fb31e..d6f5b4e8dc1 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -12956,8 +12956,16 @@ void Unit::AddAura(uint32 spellId, Unit* target) { if(spellInfo->Effect[i] == SPELL_EFFECT_APPLY_AURA) { - Aura *Aur = CreateAura(spellInfo, i, NULL, target, this); - target->AddAura(Aur); + if(spellInfo->EffectImplicitTargetA[i] == TARGET_UNIT_CASTER) + { + Aura *Aur = CreateAura(spellInfo, i, NULL, this, this); + AddAura(Aur); + } + else + { + Aura *Aur = CreateAura(spellInfo, i, NULL, target, this); + target->AddAura(Aur); + } } } } \ No newline at end of file -- cgit v1.2.3