Prevent allies from triggering planted grenades.

This commit is contained in:
Mari the Deer 2021-03-08 01:04:04 +01:00
commit 8333620469
2 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ Class ExplodiumMagHitbox : Actor
let bt = BlockThingsIterator.Create(self,128);
while ( bt.Next() )
{
if ( !bt.Thing || (bt.Thing == self) || !bt.Thing.bSHOOTABLE || (bt.Thing == target.target) || !SWWMUtility.BoxIntersect(self,bt.Thing) )
if ( !bt.Thing || (bt.Thing == self) || !bt.Thing.bSHOOTABLE || (bt.Thing == target.target) || bt.Thing.IsFriend(target.target) || !SWWMUtility.BoxIntersect(self,bt.Thing) )
continue;
target.bKILLED = true;
target.SetStateLabel("Detonate");