From 8264e4db74f5a42f108d56a2eb8d50e669ec382e Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 16 May 2024 23:53:41 +0200 Subject: [PATCH] Fix : remove warn if one effect remains and it's a suicide effect Closes #44 --- components/PlayerSlot.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 3b73f02..766f8a5 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -61,7 +61,7 @@ function has_actions_remaining(): boolean { return (goStore.self?.turn?.damage_reserve ? goStore.self?.turn?.damage_reserve > 0 : false) || (goStore.self?.turn?.gold_reserve ? goStore.self?.turn?.gold_reserve >= (goStore.current_game?.market.reduce((min, card) => Math.min(min, card?.cost ?? Infinity), Infinity) ?? Infinity) : false) || (goStore.self?.turn?.fuck_u_markers ? goStore.self?.turn?.fuck_u_markers > 0 : false) - || !goStore.self?.turn?.effects_availables.every(e => !e.usable) + || !goStore.self?.turn?.effects_availables.every(e => !e.usable || e.effect_type == EffectType.SUICIDE) || !goStore.self?.board.every(c => (c.uuid in (goStore.self?.turn?.cards_locked ?? {}))) || false }