1
0
Fork 0

Fix: multi spell effects order

This commit is contained in:
WEBXOSS 2016-11-12 17:31:04 +08:00
parent 7dd84bc3da
commit adf4b68b5c

View file

@ -36872,7 +36872,7 @@ var CardInfo = {
return this.player.seekAsyn(filter,1); return this.player.seekAsyn(filter,1);
} }
}]; }];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true); return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2);
}, },
actionAsyn: function (effects) { actionAsyn: function (effects) {
return Callback.forEach(effects,function (effect) { return Callback.forEach(effects,function (effect) {
@ -36965,7 +36965,7 @@ var CardInfo = {
} }
}]; }];
var targetObjs = []; var targetObjs = [];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true).callback(this,function (effs) { return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2).callback(this,function (effs) {
if (effs.length !== 2) { if (effs.length !== 2) {
effects = effs; // 先选3000以下的,避免选错. effects = effs; // 先选3000以下的,避免选错.
} }
@ -40430,7 +40430,7 @@ var CardInfo = {
return this.player.discardAsyn(1); return this.player.discardAsyn(1);
} }
}]; }];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true); return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2);
}, },
actionAsyn: function (effects) { actionAsyn: function (effects) {
return Callback.forEach(effects,function (effect) { return Callback.forEach(effects,function (effect) {
@ -40635,7 +40635,7 @@ var CardInfo = {
},this); },this);
} }
}]; }];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true); return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2);
}, },
actionAsyn: function (effects) { actionAsyn: function (effects) {
this.game.frameStart(); this.game.frameStart();
@ -41044,7 +41044,7 @@ var CardInfo = {
}); });
} }
}]; }];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true); return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2);
}, },
actionAsyn: function (effects) { actionAsyn: function (effects) {
return Callback.forEach(effects,function (effect) { return Callback.forEach(effects,function (effect) {
@ -112248,7 +112248,7 @@ var CardInfo = {
this.game.tillTurnEndAdd(this,target,'power',value); this.game.tillTurnEndAdd(this,target,'power',value);
} }
}]; }];
return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2,true).callback(this,function (effects) { return this.player.selectSomeAsyn('SPELL_EFFECT',effects,0,2).callback(this,function (effects) {
var flag = effects.some(function (effect) { var flag = effects.some(function (effect) {
return (effect.description === '1828-spell-2') return (effect.description === '1828-spell-2')
},this); },this);