From e386573fcc41aa9cfe0093f4d018012f81b6bc6f Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 29 Mar 2020 03:21:54 -0700 Subject: [PATCH] Who's Who: fix to remove revive when auto revived --- _zm_reimagined.gsc | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/_zm_reimagined.gsc b/_zm_reimagined.gsc index f4d0385f..713d622d 100644 --- a/_zm_reimagined.gsc +++ b/_zm_reimagined.gsc @@ -3335,7 +3335,35 @@ solo_lives_fix() self unsetPerk("specialty_quickrevive"); } - self waittill_any("chugabud_effects_cleanup", "specialty_finalstand_stop"); + self waittill("fake_revive"); + + has_revive = 0; + foreach (perk in self.loadout.perks) + { + if (perk == "specialty_quickrevive") + { + has_revive = 1; + break; + } + } + + self waittill("chugabud_effects_cleanup"); + + still_has_revive = 0; + foreach (perk in self.perks_active) + { + if (perk == "specialty_quickrevive") + { + still_has_revive = 1; + break; + } + } + + // fix to remove a solo revive if auto revived from Who's Who due to having Quick Revive + if (has_revive && !still_has_revive && saved_lives > 0) + { + saved_lives--; + } // fix for Who's Who removing solo revives self.lives = saved_lives;