Core/Pets: Do not force pets to follow their charmer when possessed by player

Port From (https://github.com/TrinityCore/TrinityCore/commit/8f02596162715b273b1a830425ae783bd00561c9)
This commit is contained in:
hondacrx
2022-05-30 14:08:55 -04:00
parent b1caf2f9fc
commit 496b1e0c46
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -1239,6 +1239,11 @@ namespace Game.Entities
return;
}
public bool IsPossessedByPlayer()
{
return HasUnitState(UnitState.Possessed) && GetCharmerGUID().IsPlayer();
}
public bool IsPossessing()
{
Unit u = GetCharmed();