summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-06-03 17:48:37 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:13:09 +0100
commitf31a3058850985a6b5b8ad195124faba384a7353 (patch)
treecb99b7d29ce605dfdd5a7aaf415731c9da5648c8 /rules.js
parent29831df3427dae4751984f1ac5912d1f5f4323dc (diff)
downloadplantagenet-f31a3058850985a6b5b8ad195124faba384a7353.tar.gz
Cleaning no event in draw sequence
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index 4ad25b0..7200b7b 100644
--- a/rules.js
+++ b/rules.js
@@ -790,10 +790,10 @@ function list_deck() {
let deck = []
let first_card = (game.active === P1) ? first_p1_card : first_p2_card
let last_card = (game.active === P1) ? last_p1_card : last_p2_card
- for (let c = first_card; c <= last_card; ++c)
+ for (let c = first_card; c <= last_card; ++c)
if (!is_card_in_use(c))
deck.push(c)
- for (let c = last_card + 1; c <= last_card + no; ++c)
+ for (let c = last_card + 1; c <= last_card; ++c)
deck.push(c)
return deck
}
@@ -1865,10 +1865,10 @@ states.levy_arts_of_war_first = {
let c = game.what[0]
view.arts_of_war = game.what
view.what = c
- if (is_no_event_card(c)) {
+ /*if (is_no_event_card(c)) {
view.prompt = `Arts of War: No Capability.`
view.actions.discard = 1
- } else if (data.cards[c].this_lord) {
+ } else */if (data.cards[c].this_lord) {
let discard = true
for (let lord of data.cards[c].lords) {
if (is_lord_on_map(lord) && !lord_already_has_capability(lord, c)) {
@@ -2261,8 +2261,8 @@ function discard_lord_capability(lord, c) {
function can_muster_capability() {
let deck = list_deck()
for (let c of deck) {
- if (is_no_event_card(c))
- continue
+ /* if (is_no_event_card(c))
+ continue*/
if (!data.cards[c].lords || set_has(data.cards[c].lords, game.who)) {
if (data.cards[c].this_lord) {
if (!lord_already_has_capability(game.who, c))
@@ -2283,8 +2283,8 @@ states.muster_capability = {
view.prompt = `Muster: Select a new Capability for ${lord_name[game.who]}.`
view.arts_of_war = deck
for (let c of deck) {
- if (is_no_event_card(c))
- continue
+ /*if (is_no_event_card(c))
+ continue*/
if (!data.cards[c].lords || set_has(data.cards[c].lords, game.who)) {
if (data.cards[c].this_lord) {
if (!lord_already_has_capability(game.who, c))