aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp12
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