mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
💩 add some WX16 cards before WD20
This commit is contained in:
parent
2837bf2bce
commit
0e660f1a55
3 changed files with 6796 additions and 6169 deletions
9
Card.js
9
Card.js
|
@ -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();
|
||||
|
|
12952
CardInfo.js
12952
CardInfo.js
File diff suppressed because it is too large
Load diff
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue