1
0
Fork 0

add ignore limiting

This commit is contained in:
deardrops 2017-04-10 21:22:20 +08:00 committed by WEBXOSS
parent 345c1750ab
commit e1f2cee2c8
2 changed files with 9 additions and 2 deletions

View file

@ -70,7 +70,8 @@
<button onclick="addTo('trashZone');">trash zone</button>
</div>
<div>
<button onclick="resetLrigDeck();">reset lrig deck</button>
<button onclick="resetArts();">reset arts</button>
<button onclick="ignoreLimiting();">ignore limiting</button>
</div>
<div class="flex-center">
<textarea id="log" readonly="readonly"></textarea>

View file

@ -229,11 +229,17 @@ function addTo(zone) {
log('card\'s wxid / pid / cid needed.');
}
}
function resetLrigDeck() {
function resetArts() {
var p = selectPlayer();
game.moveCards(p.lrigTrashZone.cards, p.lrigDeck);
log('reset lrig deck.');
}
function ignoreLimiting() {
var p = selectPlayer();
// conflict with <虚无阎魔 乌莉丝>
p.ignoreLimitingOfArtsAndSpell = true;
log('ignore limiting of arts and spell');
}
// log
function log(text) {
var logger = $('log');