mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
add ignore limiting
This commit is contained in:
parent
345c1750ab
commit
e1f2cee2c8
2 changed files with 9 additions and 2 deletions
|
@ -70,7 +70,8 @@
|
||||||
<button onclick="addTo('trashZone');">trash zone</button>
|
<button onclick="addTo('trashZone');">trash zone</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button onclick="resetLrigDeck();">reset lrig deck</button>
|
<button onclick="resetArts();">reset arts</button>
|
||||||
|
<button onclick="ignoreLimiting();">ignore limiting</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<textarea id="log" readonly="readonly"></textarea>
|
<textarea id="log" readonly="readonly"></textarea>
|
||||||
|
|
|
@ -229,11 +229,17 @@ function addTo(zone) {
|
||||||
log('card\'s wxid / pid / cid needed.');
|
log('card\'s wxid / pid / cid needed.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function resetLrigDeck() {
|
function resetArts() {
|
||||||
var p = selectPlayer();
|
var p = selectPlayer();
|
||||||
game.moveCards(p.lrigTrashZone.cards, p.lrigDeck);
|
game.moveCards(p.lrigTrashZone.cards, p.lrigDeck);
|
||||||
log('reset lrig deck.');
|
log('reset lrig deck.');
|
||||||
}
|
}
|
||||||
|
function ignoreLimiting() {
|
||||||
|
var p = selectPlayer();
|
||||||
|
// conflict with <虚无阎魔 乌莉丝>
|
||||||
|
p.ignoreLimitingOfArtsAndSpell = true;
|
||||||
|
log('ignore limiting of arts and spell');
|
||||||
|
}
|
||||||
// log
|
// log
|
||||||
function log(text) {
|
function log(text) {
|
||||||
var logger = $('log');
|
var logger = $('log');
|
||||||
|
|
Loading…
Reference in a new issue