forked from Mirrors/openclonk
make GIDL targets damagable by AI (#1464)
The no-friendly-fire effect also protected the targets from being damaged by AI.shapetextures
parent
178a91f338
commit
fdeccdf83d
|
@ -134,7 +134,7 @@ func StartGame()
|
|||
func Object_NoPlayerDamage(object target, fx, dmg, cause, cause_player)
|
||||
{
|
||||
// players can't damage statue or doors
|
||||
if (cause_player>=0) return 0;
|
||||
if (GetPlayerType(cause_player) == C4PT_User) return 0;
|
||||
return dmg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue