From a580df14e9403896978d27bf53ee5336acdc58cd Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 11 May 2023 17:22:34 -0700 Subject: [PATCH] Tombstone: fix powerup not spawning sometimes when perks are retained --- scripts/zm/replaced/_zm.gsc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index 6b0ab455..39b604c6 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -1953,8 +1953,12 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s { self [[ level.tombstone_laststand_func ]](); self thread [[ level.tombstone_spawn_func ]](); - self.hasperkspecialtytombstone = undefined; - self notify( "specialty_scavenger_stop" ); + + if (!is_true(self._retain_perks)) + { + self.hasperkspecialtytombstone = undefined; + self notify( "specialty_scavenger_stop" ); + } } self clear_is_drinking(); self thread maps\mp\zombies\_zm::remove_deadshot_bottle();