forked from mirrors/webxoss-core
implement card.onAcced
This commit is contained in:
parent
d3a0b63680
commit
fb615375a0
2 changed files with 4 additions and 3 deletions
2
Card.js
2
Card.js
|
@ -131,6 +131,7 @@ function Card (game,player,zone,pid,side) {
|
||||||
this.onFreeze = new Timming(game);
|
this.onFreeze = new Timming(game);
|
||||||
this.onChangeSigniZone = new Timming(game);
|
this.onChangeSigniZone = new Timming(game);
|
||||||
this.onRised = new Timming(game);
|
this.onRised = new Timming(game);
|
||||||
|
this.onAcced = new Timming(game);
|
||||||
|
|
||||||
// 附加的属性
|
// 附加的属性
|
||||||
this.canNotAttack = false;
|
this.canNotAttack = false;
|
||||||
|
@ -1553,6 +1554,7 @@ Card.prototype.acceTo = function (signi) {
|
||||||
faceup: true,
|
faceup: true,
|
||||||
up: signi.isUp,
|
up: signi.isUp,
|
||||||
});
|
});
|
||||||
|
this.onAcced.trigger();
|
||||||
this.game.frameEnd();
|
this.game.frameEnd();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -129547,7 +129547,7 @@ var CardInfo = {
|
||||||
"【[トラップ]】:あなたの場にある他の【トラップ】1枚をトラッシュに置き、《青》を支払ってもよい。そうした場合、対戦相手のシグニ1体をバニッシュする。",
|
"【[トラップ]】:あなたの場にある他の【トラップ】1枚をトラッシュに置き、《青》を支払ってもよい。そうした場合、対戦相手のシグニ1体をバニッシュする。",
|
||||||
],
|
],
|
||||||
extraTexts_en: [
|
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...
|
// TODO...
|
||||||
trap: {
|
trap: {
|
||||||
|
@ -134110,8 +134110,7 @@ var CardInfo = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// TODO...
|
add(signi,'onAcced',effect);
|
||||||
add(signi,'onAcce',effect);
|
|
||||||
},this);
|
},this);
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
Loading…
Reference in a new issue