turn.find_effects should probably be replaced by something else Closes heron-realms-front/issues#39
This commit is contained in:
@@ -116,7 +116,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
|
|||||||
</button>
|
</button>
|
||||||
<button v-if="goStore.self && isSelfTurn && isPlayerEnemy && goStore.self?.turn"
|
<button v-if="goStore.self && isSelfTurn && isPlayerEnemy && goStore.self?.turn"
|
||||||
@click.stop="make_discard(props.player)"
|
@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
|
make Discard
|
||||||
</button>
|
</button>
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
Reference in New Issue
Block a user