From efe8175c5d36982c01128eea007fedbce19b97ab Mon Sep 17 00:00:00 2001 From: Vespura <31419184+TomGrobbe@users.noreply.github.com> Date: Wed, 23 May 2018 22:18:56 +0200 Subject: [PATCH] improve special vehicle god mode --- vMenu/FunctionsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vMenu/FunctionsController.cs b/vMenu/FunctionsController.cs index 191410d9..747172a5 100644 --- a/vMenu/FunctionsController.cs +++ b/vMenu/FunctionsController.cs @@ -266,7 +266,7 @@ private async Task VehicleOptions() vd.CanBeBroken = !god; } bool specialgod = MainMenu.VehicleOptionsMenu.VehicleSpecialGodMode && cf.IsAllowed(Permission.VOSpecialGod); - if (specialgod && vehicle.Health != vehicle.MaxHealth) + if (specialgod && vehicle.EngineHealth < 1000) { vehicle.Repair(); // repair vehicle if special god mode is on and the vehicle is not full health. }