Fix moths getting stuck to befriended cacos.

This commit is contained in:
Mari the Deer 2023-10-16 20:11:18 +02:00
commit aae213fd1c
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ Class LampMoth : Actor
}
void A_SmoothChase()
{
if ( !target || (target.Health <= 0) )
if ( !target || (target.Health <= 0) || target.IsFriend(self) )
{
A_ClearTarget();
SetStateLabel("Spawn");