mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-19 22:39: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>
|
||||
</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>
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue