fix(Core/Spells): Taunt always set proper target while channelling sp… (#13948)

* fix(Core/Spells): Taunt always set proper target while channelling spells.

Fixes #13841

* Update.

* Update.
This commit is contained in:
UltraNix
2023-08-06 03:16:05 +02:00
committed by GitHub
parent e8507435ff
commit c3acf75618
4 changed files with 19 additions and 17 deletions

View File

@@ -14643,6 +14643,8 @@ void Unit::TauntApply(Unit* taunter)
return;
SetInFront(taunter);
SetGuidValue(UNIT_FIELD_TARGET, taunter->GetGUID());
if (creature->IsAIEnabled)
creature->AI()->AttackStart(taunter);
@@ -14681,6 +14683,7 @@ void Unit::TauntFadeOut(Unit* taunter)
if (target && target != taunter)
{
SetGuidValue(UNIT_FIELD_TARGET, target->GetGUID());
SetInFront(target);
if (creature->IsAIEnabled)
creature->AI()->AttackStart(target);