From fb615375a0697fc137d63648f2e665d0b23c741a Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Tue, 28 Mar 2017 19:39:42 +0800 Subject: [PATCH] implement card.onAcced --- Card.js | 2 ++ CardInfo.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Card.js b/Card.js index 212d716..9869d3e 100644 --- a/Card.js +++ b/Card.js @@ -131,6 +131,7 @@ function Card (game,player,zone,pid,side) { this.onFreeze = new Timming(game); this.onChangeSigniZone = new Timming(game); this.onRised = new Timming(game); + this.onAcced = new Timming(game); // 附加的属性 this.canNotAttack = false; @@ -1553,6 +1554,7 @@ Card.prototype.acceTo = function (signi) { faceup: true, up: signi.isUp, }); + this.onAcced.trigger(); this.game.frameEnd(); }; diff --git a/CardInfo.js b/CardInfo.js index cac8ca4..f2db0f2 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -129547,7 +129547,7 @@ var CardInfo = { "【[トラップ]】:あなたの場にある他の【トラップ】1枚をトラッシュに置き、《青》を支払ってもよい。そうした場合、対戦相手のシグニ1体をバニッシュする。", ], extraTexts_en: [ - "[Trap]: You may put 1 of your other [Trap] on the field into the trash, and pay Blue. If you do, banish 1 of your opponent's SIGNI." + "[Trap]: You may put 1 of your other [Trap] on the field into the trash, and pay [Blue]. If you do, banish 1 of your opponent's SIGNI." ], // TODO... trap: { @@ -134110,8 +134110,7 @@ var CardInfo = { }); } }); - // TODO... - add(signi,'onAcce',effect); + add(signi,'onAcced',effect); },this); } }],