Disable friendly-fire warning for amenities in VR

This commit is contained in:
Subsonic154 2026-05-05 11:30:34 -04:00
parent 51b8956869
commit 42726fded2

View file

@ -462,9 +462,6 @@ class SessionData(
case obj: Amenity if obj.CanDamage =>
if (obj.IsInVRZone && obj.Faction == player.Faction) {
//disable friendly-fire in VR zones
if (data.resolution != DamageResolution.Splash) { //don't do the grief warning against amenities from splash damage
general.trainingGriefWarning()
}
} else {
obj.Actor ! Vitality.Damage(func)
}