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> <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>

View file

@ -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');