forked from mirrors/webxoss-core
Fix strict
This commit is contained in:
parent
2fb41136d3
commit
472e047ae5
1 changed files with 4 additions and 6 deletions
10
CardInfo.js
10
CardInfo.js
|
@ -48747,7 +48747,7 @@ var CardInfo = {
|
||||||
var cards = this.player.mainDeck.getTopCards(5);
|
var cards = this.player.mainDeck.getTopCards(5);
|
||||||
var countMap = {};
|
var countMap = {};
|
||||||
var classes = [];
|
var classes = [];
|
||||||
function add (cls) {
|
var add = function (cls) {
|
||||||
if (cls in countMap) {
|
if (cls in countMap) {
|
||||||
countMap[cls]++;
|
countMap[cls]++;
|
||||||
if (countMap[cls] === 3) classes.push(cls);
|
if (countMap[cls] === 3) classes.push(cls);
|
||||||
|
@ -119827,7 +119827,7 @@ var CardInfo = {
|
||||||
} else {
|
} else {
|
||||||
// 需要废弃1~2只 SIGNI
|
// 需要废弃1~2只 SIGNI
|
||||||
var cards = []; // 可以废弃的 SIGNI
|
var cards = []; // 可以废弃的 SIGNI
|
||||||
function add (signis) {
|
var add = function (signis) {
|
||||||
signis.forEach(function (signi) {
|
signis.forEach(function (signi) {
|
||||||
if (inArr(signi,cards)) return;
|
if (inArr(signi,cards)) return;
|
||||||
cards.push(signi);
|
cards.push(signi);
|
||||||
|
@ -120214,15 +120214,13 @@ var CardInfo = {
|
||||||
var effect = this.game.newEffect({
|
var effect = this.game.newEffect({
|
||||||
source: this,
|
source: this,
|
||||||
description: '1935-const-1',
|
description: '1935-const-1',
|
||||||
condition: function () {
|
|
||||||
return this.player.lrig && this.player.lrig.hasClass('アイヤイ');
|
|
||||||
},
|
|
||||||
triggerCondition: function (event) {
|
triggerCondition: function (event) {
|
||||||
return inArr(event.oldZone,[this.player.mainDeck,this.player.handZone]) &&
|
return inArr(event.oldZone,[this.player.mainDeck,this.player.handZone]) &&
|
||||||
(event.newZone === this.player.trashZone);
|
(event.newZone === this.player.trashZone);
|
||||||
},
|
},
|
||||||
condition: function () {
|
condition: function () {
|
||||||
return (this.zone === this.player.trashZone);
|
return this.player.lrig && this.player.lrig.hasClass('アイヤイ') &&
|
||||||
|
(this.zone === this.player.trashZone);
|
||||||
},
|
},
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
this.moveTo(this.player.enerZone);
|
this.moveTo(this.player.enerZone);
|
||||||
|
|
Loading…
Reference in a new issue