necro armor's delayed death can synergize with other death prevention

This commit is contained in:
Altixal committed 2024-07-30 01:45:32 +07:00
1 parent d33f56fe07
commit bd1a3e76d6
1 file changed
+3
+3
View File
@@ -1695,7 +1695,10 @@ namespace CalamityMod.CalPlayer
Player.statLife = upperHealthLimit;
if (necroReviveCounter >= NecroArmorSetChange.PostMortemDuration * 60)
{
Player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.NecroRevive").Format(Player.name)), 1000, -1);
necroReviveCounter = -1;
}
else if (necroReviveCounter % 60 == 59)
SoundEngine.PlaySound(NecroArmorSetChange.TimerSound, Player.Center);
}