fix(Core/Unit): Clear invalid combat refs after mind control (#25424)
Co-authored-by: Lucas Nascimento <keader.android@gmail.com>
This commit is contained in:
@@ -14878,6 +14878,9 @@ void Unit::RemoveCharmedBy(Unit* charmer)
|
|||||||
|
|
||||||
StopAttackingInvalidTarget();
|
StopAttackingInvalidTarget();
|
||||||
|
|
||||||
|
// End stale combat refs between now-friendly units after faction restore
|
||||||
|
GetCombatManager().RevalidateCombat();
|
||||||
|
|
||||||
Player* playerCharmer = charmer->ToPlayer();
|
Player* playerCharmer = charmer->ToPlayer();
|
||||||
if (playerCharmer)
|
if (playerCharmer)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user