This commit is contained in:
parent
39d8c82d05
commit
a8a7b861ad
|
@ -386,9 +386,7 @@ card.guozhan={
|
||||||
chongzhu:true,
|
chongzhu:true,
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
if(player==target) return false;
|
if(player==target) return false;
|
||||||
return (target.get('h').length||
|
return (target.get('h').length||target.isUnseen(2));
|
||||||
target.classList.contains('unseen')||
|
|
||||||
target.classList.contains('unseen2'))
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
@ -398,8 +396,8 @@ card.guozhan={
|
||||||
player.storage.zhibi.add(target);
|
player.storage.zhibi.add(target);
|
||||||
var controls=[];
|
var controls=[];
|
||||||
if(target.get('h').length) controls.push('手牌');
|
if(target.get('h').length) controls.push('手牌');
|
||||||
if(target.classList.contains('unseen')) controls.push('主将');
|
if(target.isUnseen(0)) controls.push('主将');
|
||||||
if(target.classList.contains('unseen2')) controls.push('副将');
|
if(target.isUnseen(1)) controls.push('副将');
|
||||||
if(controls.length>1){
|
if(controls.length>1){
|
||||||
player.chooseControl(controls);
|
player.chooseControl(controls);
|
||||||
}
|
}
|
||||||
|
@ -425,7 +423,7 @@ card.guozhan={
|
||||||
content=[str+'手牌',target.get('h')];
|
content=[str+'手牌',target.get('h')];
|
||||||
game.log(player,'观看了',target,'的手牌');
|
game.log(player,'观看了',target,'的手牌');
|
||||||
}
|
}
|
||||||
else if(target.classList.contains('unseen')){
|
else if(target.isUnseen(0)){
|
||||||
content=[str+'主将',[[target.name1],'character']];
|
content=[str+'主将',[[target.name1],'character']];
|
||||||
game.log(player,'观看了',target,'的主将');
|
game.log(player,'观看了',target,'的主将');
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,6 +236,9 @@ mode.guozhan={
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
skill:{
|
skill:{
|
||||||
|
// baoling:{
|
||||||
|
// trigger:{player:'phaseEnd'},
|
||||||
|
// },
|
||||||
gzmingshi:{
|
gzmingshi:{
|
||||||
trigger:{player:'damageBegin'},
|
trigger:{player:'damageBegin'},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
@ -1868,7 +1871,12 @@ mode.guozhan={
|
||||||
game.tryResult();
|
game.tryResult();
|
||||||
},
|
},
|
||||||
isUnseen:function(){
|
isUnseen:function(){
|
||||||
return (this.classList.contains('unseen')&&this.classList.contains('unseen2'));
|
switch(num){
|
||||||
|
case 0:return this.classList.contains('unseen');
|
||||||
|
case 1:return this.classList.contains('unseen2');
|
||||||
|
case 2:return this.classList.contains('unseen')||this.classList.contains('unseen2');
|
||||||
|
default:return this.classList.contains('unseen')&&this.classList.contains('unseen2');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkShow:function(skill){
|
checkShow:function(skill){
|
||||||
var sourceSkill=get.info(skill);
|
var sourceSkill=get.info(skill);
|
||||||
|
|
Loading…
Reference in New Issue