mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 🚧 fix major bugs for test
This commit is contained in:
parent
de4ba5971f
commit
7128287619
3 changed files with 3 additions and 3 deletions
2
Card.js
2
Card.js
|
@ -64,7 +64,7 @@ function Card (game,player,zone,pid,side) {
|
|||
// 生命迸发效果
|
||||
this.burstEffects = this.cookEffect(info.burstEffect,'burst');
|
||||
// 常时效果(因为内容会被修改,这里用 slice 创建不同的引用)
|
||||
this.constEffects = info.constEffects.slice() || [];
|
||||
this.constEffects = (info.constEffects || []).slice();
|
||||
// 出场效果
|
||||
this.startUpEffects = this.cookEffect(info.startUpEffects,'startup');
|
||||
// 起动效果
|
||||
|
|
2
Game.js
2
Game.js
|
@ -941,7 +941,7 @@ Game.prototype.handleBlockEndAsyn = function () {
|
|||
return this.turnPlayer.resetSignisAsyn().callback(this,function () {
|
||||
return this.turnPlayer.opponent.resetSignisAsyn();
|
||||
}).callback(this,function () {
|
||||
return this.player.resetAccesAsyn().callback(this,function () {
|
||||
return this.turnPlayer.resetAccesAsyn().callback(this,function () {
|
||||
return this.turnPlayer.opponent.resetAccesAsyn();
|
||||
});
|
||||
}).callback(this,function () {
|
||||
|
|
|
@ -1047,7 +1047,7 @@ Player.prototype.endSigniAttackStepAsyn = function () {
|
|||
// 必须进行攻击的卡
|
||||
var cards = this.signis.filter(function (card) {
|
||||
return (this.forceSigniAttack || card.mustAttack) && card.canAttack() && !card.attackCostColorless;
|
||||
});
|
||||
},this);
|
||||
if (cards.length) return Callback.never();
|
||||
return this.selectAsyn('END_SIGNI_ATTACK_STEP');
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue