From 4a0a38cb92a3c552c3c9ea59107116b5258ea940 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 30 Jan 2022 08:23:00 -0800 Subject: [PATCH] Containment: fix Jug health not being restored correctly --- scripts/zm/replaced/_zm_perks.gsc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/zm/replaced/_zm_perks.gsc b/scripts/zm/replaced/_zm_perks.gsc index 43a96814..d9948742 100644 --- a/scripts/zm/replaced/_zm_perks.gsc +++ b/scripts/zm/replaced/_zm_perks.gsc @@ -221,12 +221,14 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health max_total_health = level.player_starting_health; } } - else + else if ( perk == "health_reboot" ) { - if ( perk == "health_reboot" ) + if(isDefined(level.scr_zm_ui_gametype_obj) && level.scr_zm_ui_gametype_obj == "zcontainment") { - max_total_health = level.player_starting_health; + return; } + + max_total_health = level.player_starting_health; } if ( isDefined( max_total_health ) ) {