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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r332 \cu(Mon 8 Mar 00:27:48 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r332 \cu(2021-03-08 00:27:48)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r333 \cu(Mon 8 Mar 01:04:04 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r333 \cu(2021-03-08 01:04:04)\c-";

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