Skip to content

Commit

Permalink
Spell: HandleTriggerLinkedAura should be cast by caster
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Feb 12, 2022
1 parent cd3b166 commit 21fb784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10066,11 +10066,12 @@ void Aura::HandleTriggerLinkedAura(bool apply, bool Real)
}

Unit* target = GetTarget();
Unit* caster = GetCaster();

if (apply)
{
int32 points = GetAmount();
target->CastCustomSpell(target, spellInfo, &points, nullptr, nullptr, TRIGGERED_OLD_TRIGGERED, nullptr, this);
caster->CastCustomSpell(target, spellInfo, &points, nullptr, nullptr, TRIGGERED_OLD_TRIGGERED, nullptr, this);
}
else
target->RemoveAurasByCasterSpell(linkedSpell, GetCasterGuid());
Expand Down

0 comments on commit 21fb784

Please sign in to comment.