diff options
author | megamage <none@none> | 2008-12-23 16:02:32 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-23 16:02:32 -0600 |
commit | 5154f51633571460924f161940d18a23c8dfb1ee (patch) | |
tree | c821e6374588b50b1caf21ebfa669ab99ba87371 | |
parent | 7fe4b221db3689989ac091ae60b64f6384a2c3cb (diff) |
*Fix a bug that some proc buffs are casted on targets but not self.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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 |