Skip to content

Commit

Permalink
improve special vehicle god mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed May 23, 2018
1 parent c391fc4 commit efe8175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down

0 comments on commit efe8175

Please sign in to comment.