[fix] Fix make discard button
release-tag / release-image (push) Successful in 27s

turn.find_effects should probably be replaced by something else
Closes heron-realms-front/issues#39
This commit is contained in:
2024-05-16 14:48:08 +02:00
parent ffc3c793ab
commit eec6761280
+1 -1
View File
@@ -116,7 +116,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
</button>
<button v-if="goStore.self && isSelfTurn && isPlayerEnemy && goStore.self?.turn"
@click.stop="make_discard(props.player)"
:disabled="!goStore.self!.turn.find_effect(CardEffects.MAKE_DISCARD)">
:disabled="!goStore.self.turn.effects_availables.find((e: Effect) => (e.effect == CardEffects.MAKE_DISCARD) && e.usable)">
make Discard
</button>
<br />