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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r986 \cu(Mon 16 Oct 14:10:40 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r986 \cu(2023-10-16 14:10:40)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r987 \cu(Mon 16 Oct 20:11:18 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r987 \cu(2023-10-16 20:11:18)\c-";

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");