forked from Mirrors/openclonk
Fix DefenseBoomAttack getting hit by own shooter if NoFriendlyFire is off
parent
6f8368da93
commit
50c52eea8c
|
@ -230,7 +230,7 @@ public func OnUnmount(object clonk)
|
|||
|
||||
/*-- Explosion --*/
|
||||
|
||||
public func IsProjectileTarget(target,shooter) { return true; }
|
||||
public func IsProjectileTarget(target,shooter) { return (!shooter) || (shooter->GetActionTarget() != this); } // don't get hit by projectiles shot from own rider
|
||||
public func OnProjectileHit(object shot) { return DoFireworks(shot->GetController()); }
|
||||
|
||||
public func ContactBottom() { return Hit(); }
|
||||
|
|
Loading…
Reference in New Issue