This commit is contained in:
Evil Factory
2025-12-18 08:15:42 -03:00
14 changed files with 47 additions and 24 deletions
@@ -627,9 +627,9 @@ namespace Barotrauma
{
get
{
if (IsPet)
if (IsPet && AIController is EnemyAIController { PetBehavior: { } petBehavior })
{
string petName = (AIController as EnemyAIController).PetBehavior.GetTagName();
string petName = petBehavior.GetTagName();
if (!string.IsNullOrEmpty(petName)) { return petName; }
}