1
0
Fork 0

💫 implement PR-360

This commit is contained in:
WEBXOSS 2017-06-07 16:28:39 +08:00
parent 137f72a679
commit 12bcb75031
3 changed files with 14 additions and 1 deletions

View file

@ -149,6 +149,7 @@ function Card (game,player,zone,pid,side) {
this.canNotBeBanished = false;
this.abilityLost = false;
this.canNotBeBanishedByEffect = false;
this.canNotBeBouncedByEffect = false;
this.protectingShironakujis = []; // <幻水 蓝鲸>
this.protectingMpps = []; // <コードハート M・P・P>
this.useBikouAsWhiteCost = false; // <启示的天惠 安=FORTH>
@ -166,6 +167,7 @@ function Card (game,player,zone,pid,side) {
this._SnoropNaturalPlantPrincess = false; // <罗植姬 雪花莲>
this._CodeLabyrinthLouvre = null; // <卢浮宫>
this.powerAddProtected = false; // <幻兽 苍龙>
this.powerDecreaseProtected = false; // PR-360
this._GustaftCenterBallista = false; // <弩中砲 グスタフト>
this.colorLost = false; // <侍从 ∞>
this.banishProtections = [];
@ -795,6 +797,12 @@ Card.prototype.moveTo = function (zone,arg) {
return false;
}
}
// "不能因对战对手的效果从场上返回手牌。"
if (card.player.canNotBeBouncedByEffect && source && (source.player !== card.player)) {
if (inArr(card,card.player.signis) && (zone.name === 'HandZone')) {
return false;
}
}
// 注: 交换 SIGNI 区请用 card.changeSigniZone(zone).
// 以下代码作废.

View file

@ -114437,7 +114437,6 @@ var CardInfo = {
],
startUpEffects: [{
actionAsyn: function () {
// TODO...
var effects = [{
source: this,
description: '2243-attached-0',

View file

@ -111,6 +111,12 @@ ConstEffect.prototype.add = function (target,prop,value,arg) {
if (flag) {
value = -value;
}
// PR-360
if ((prop === 'power') && target.powerDecreaseProtected) {
if ((this.source.player !== target.player) && (value < 0)) {
return;
}
}
// <暴力飞溅>
var count = this.source.player._ViolenceSplashCount;
flag = (count > 0) &&