Don't ignite friends with "pants on fire" cheat.

This commit is contained in:
Mari the Deer 2022-06-05 00:34:58 +02:00
commit ba1583ca76
2 changed files with 3 additions and 3 deletions

View file

@ -402,7 +402,7 @@ extend Class SWWMHandler
bool burned = false;
while ( a = Actor(ti.Next()) )
{
if ( !a.bSHOOTABLE || a.player || !SWWMUtility.InPlayerFOV(players[e.Args[0]],a) ) continue;
if ( !a.bSHOOTABLE || a.player || a.IsFriend(players[e.Args[0]].mo) || !SWWMUtility.InPlayerFOV(players[e.Args[0]],a) ) continue;
OnFire.Apply(a,players[e.Args[0]].mo,500);
burned = true;
}