💩 add some WX16 cards before WD20

This commit is contained in:
WEBXOSS 2017-05-26 11:09:59 +08:00
parent 2837bf2bce
commit 0e660f1a55
3 changed files with 6796 additions and 6169 deletions

View file

@ -184,6 +184,7 @@ Card.abilityProps = [
'canNotBeBanishedByEffect',
'canAttackAnySigniZone',
'canAttackNearbySigniZone',
'trap',
];
Card.prototype.cookEffect = function (rawEffect,type,offset) {
@ -796,6 +797,7 @@ Card.prototype.moveTo = function (zone,arg) {
var moveEvent = {
card: card,
isSigni: inArr(card,card.player.signis),
power: card.power, // 移动前的力量
isCharm: arg.isCharm || false,
isCrossed: !!card.crossed,
riseTarget: null,
@ -1205,7 +1207,7 @@ Card.prototype.attackAsyn = function () {
if (opposingSigni || !trap) return;
return this.player.opponent.selectOptionalAsyn('LAUNCH',[trap]).callback(this,function (card) {
if (!card) return;
return card.handleTrapAsyn();
return card.handleTrapAsyn(event);
});
}).callback(this,function () {
// 强制结束回合
@ -1667,7 +1669,8 @@ Card.prototype.isInfected = function() {
return this.zone.virus;
};
Card.prototype.handleTrapAsyn = function() {
Card.prototype.handleTrapAsyn = function(event) {
// 注意 event 是可选的!
return Callback.immediately().callback(this,function () {
if (this.zone.cards.indexOf(this) === 0) {
this.faceup();
@ -1677,7 +1680,7 @@ Card.prototype.handleTrapAsyn = function() {
}).callback(this,function () {
if (!this.trap) return;
return this.game.blockAsyn(this,function () {
return this.trap.actionAsyn.call(this);
return this.trap.actionAsyn.call(this,event);
})
}).callback(this,function () {
this.trash();

12954
CardInfo.js

File diff suppressed because it is too large Load diff

View file

@ -636,6 +636,8 @@ Player.prototype.handleArtsAsyn = function (card,ignoreCost) {
var encored = false;
var costObj = card.getChainedCostObj();
if (ignoreCost) costObj = {};
var count = this.game.getData(this,'artsCount') || 0;
this.game.setData(this,'artsCount',count+1);
this.game.setData(this,'flagArtsUsed',true);
// 五色电影卡
if (card.cid !== 1167) {