From ff071e1357a4af41edef5d9f87ed763531679d55 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Thu, 1 Dec 2016 23:55:42 +0800 Subject: [PATCH] prepare for WX14 test --- Card.js | 2 +- CardInfo.js | 35 ++++++++++++++++++----------------- ConstEffectManager.js | 2 +- Mask.js | 4 ++-- Player.js | 4 ++-- webxoss-client | 2 +- 6 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Card.js b/Card.js index 402f983..ee21e24 100644 --- a/Card.js +++ b/Card.js @@ -323,7 +323,7 @@ Card.prototype.canSummonWith = function (signis) { },this); if (flag) return false; // 限定 - flag = ths.player.ignoreLimitingOfLevel5Signi && (this.level === 5); + flag = this.player.ignoreLimitingOfLevel5Signi && (this.level === 5); if (!flag && !this.checkLimiting()) return false; // 等级限制 if (this.level > this.player.lrig.level) return false; diff --git a/CardInfo.js b/CardInfo.js index 4b29cc0..aec2c60 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -116180,6 +116180,7 @@ var CardInfo = { } }); add(this.player,'onSummonSigni',effect); + } }], // ====================== // 迸发效果 @@ -116209,7 +116210,7 @@ var CardInfo = { } return this.player.seekAndSummonAsyn(filter,1); }); - }); + } } }, "1889": { @@ -116316,7 +116317,7 @@ var CardInfo = { constEffectTexts_en: [ "[Constant]: When you [Guard] your opponent's LRIG's attack, or when you disable your opponent's SIGNI's attack, if your LRIG is , you may exclude this card in your trash from the game. If you do, draw a card." ], - constEffects: + constEffects: [{ duringGame: true, fixed: true, action: function (set,add) { @@ -118032,7 +118033,7 @@ var CardInfo = { description: '1912-const-0', triggerCondition: function (event) { return (event.card.power <= 8000); - } + }, actionAsyn: function (event) { return event.card.banishAsyn(); } @@ -118342,7 +118343,7 @@ var CardInfo = { this.player.mainDeck.moveCardsToBottom(cards); }); }); - }; + }); } }], }, @@ -118403,7 +118404,7 @@ var CardInfo = { spellEffect: [{ getTargets: function () { return this.player.signis.filter(function (signi) { - return signi.hasClass('毒牙'); + return signi.hasClass('毒牙'); },this); }, actionAsyn: function (target) { @@ -118425,7 +118426,7 @@ var CardInfo = { },{ getTargets: function () { return this.player.signis.filter(function (signi) { - return signi.hasClass('毒牙'); + return signi.hasClass('毒牙'); },this); }, actionAsyn: function (target) { @@ -118691,7 +118692,7 @@ var CardInfo = { "【起】あなたの<毒牙>のシグニ1体を場からトラッシュに置く:このシグニをアップする。" ], actionEffectTexts_zh_CN: [ - "【起】【横置】:直到回合结束为止,对战对手的1只SIGNI力量-5000。这个回合,这只SIGNI因效果从横置状态变为竖置状态的场合,作为替代,直到回合结束为止,将对战对手的1只SIGNI力量-7000。" + "【起】【横置】:直到回合结束为止,对战对手的1只SIGNI力量-5000。这个回合,这只SIGNI因效果从横置状态变为竖置状态的场合,作为替代,直到回合结束为止,将对战对手的1只SIGNI力量-7000。", "【起】将你的1只<毒牙>SIGNI从场上放置到废弃区:将这只SIGNI竖置。" ], actionEffectTexts_en: [ @@ -121814,7 +121815,7 @@ var CardInfo = { var obj = Object.create(this); obj.costChange = null; return obj; - } + }, artsEffect: { actionAsyn: function () { var actionEffects = this.player.lrig.actionEffects.filter(function (effect) { @@ -122389,7 +122390,7 @@ var CardInfo = { var source = this.game.getEffectSource(); if (!source) return false; return (source.player === this.player.opponent); - } + }, actionAsyn: function () { this.player.opponent.discardRandomly(1); } @@ -122403,7 +122404,7 @@ var CardInfo = { description: '1968-const-1', triggerCondition: function (event) { return (event.card.owner === this.player.opponent); - } + }, actionAsyn: function () { return this.player.selectOpponentSigniAsyn().callback(this,function (card) { if (card) { @@ -123043,11 +123044,11 @@ var CardInfo = { cardText: "思ったよりここも居心地がいいじゃん。~遊月~", cardText_zh_CN: "", cardText_en: "", - costOr: ['black', 'green'], + costOr: ['red', 'green'], growCondition: function () { - var black = Object.create(this); - black.costBlack++; - if (this.player.enoughCost(black)) return true; + var red = Object.create(this); + red.costRed++; + if (this.player.enoughCost(red)) return true; var green = Object.create(this); green.costGreen++; if (this.player.enoughCost(green)) return true; @@ -123055,9 +123056,9 @@ var CardInfo = { }, costChangeAsyn: function () { var colors = []; - var black = Object.create(this); - black.costBlack++; - if (this.player.enoughCost(black)) colors.push('black'); + var red = Object.create(this); + red.costRed++; + if (this.player.enoughCost(red)) colors.push('red'); var green = Object.create(this); green.costGreen++; if (this.player.enoughCost(green)) colors.push('green'); diff --git a/ConstEffectManager.js b/ConstEffectManager.js index c8b177a..7361f73 100644 --- a/ConstEffectManager.js +++ b/ConstEffectManager.js @@ -27,7 +27,7 @@ ConstEffectManager.prototype.setBase = function (target,prop) { if (isObj(value) && (value.constructor === Timming)) { value = null; } - this.tableBase[hash] = new Mask(target,prop,value); + this.tableBase[hash] = new Mask(null,target,prop,value); }; ConstEffectManager.prototype.compute = function () { diff --git a/Mask.js b/Mask.js index 8edf69a..ae4ded9 100644 --- a/Mask.js +++ b/Mask.js @@ -32,7 +32,7 @@ Mask.prototype.set = function (reset) { return; } if (source.canNotGainAbilityBySelfPlayer) { - if (this.source.player === source.player) { + if (this.source && (this.source.player === source.player)) { return; } } @@ -58,7 +58,7 @@ Mask.prototype.set = function (reset) { return; } if (target.canNotGainAbilityBySelfPlayer) { - if (this.source === target.player) { + if (this.source && (this.source === target.player)) { return; } } diff --git a/Player.js b/Player.js index f9f614b..38b0bed 100644 --- a/Player.js +++ b/Player.js @@ -827,8 +827,8 @@ Player.prototype.useActionEffectAsyn = function () { if (this.canUseActionEffect(effect)) { effects.push(effect); } - }); - }); + },this); + },this); if (!effects.length) return Callback.never(); return this.selectAsyn('USE_ACTION_EFFECT',effects).callback(this,function (effect) { return this.handleActionEffectAsyn(effect,{ diff --git a/webxoss-client b/webxoss-client index a1b421e..5fe341e 160000 --- a/webxoss-client +++ b/webxoss-client @@ -1 +1 @@ -Subproject commit a1b421e2b205a326cddfb8d1d9b2db27f2efac86 +Subproject commit 5fe341e675e11da963a30577526b67249aefa27a