bugfix
This commit is contained in:
parent
d6109c6a5e
commit
d376cb853d
|
@ -227,18 +227,18 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
var base=0,hit=false;
|
var base=0,hit=false;
|
||||||
if(get.cardtag(card,'yingbian_hit')){
|
if(get.cardtag(card,'yingbian_hit')){
|
||||||
hit=true;
|
hit=true;
|
||||||
if(targets.filter(function(target){
|
if(targets.some(target=>{
|
||||||
return target.hasShan()&&get.attitude(viewer,target)<0&&get.damageEffect(target,player,viewer,get.nature(card))>0;
|
return target.mayHaveShan(viewer)&&get.attitude(viewer,target)<0&&get.damageEffect(target,player,viewer,get.natureList(card))>0;
|
||||||
})) base+=5;
|
})) base+=5;
|
||||||
}
|
}
|
||||||
if(get.cardtag(card,'yingbian_all')){
|
if(get.cardtag(card,'yingbian_add')){
|
||||||
if(game.hasPlayer(function(current){
|
if(game.hasPlayer(function(current){
|
||||||
return !targets.contains(current)&&lib.filter.targetEnabled2(card,player,current)&&get.effect(current,card,player,player)>0;
|
return !targets.contains(current)&&lib.filter.targetEnabled2(card,player,current)&&get.effect(current,card,player,player)>0;
|
||||||
})) base+=5;
|
})) base+=5;
|
||||||
}
|
}
|
||||||
if(get.cardtag(card,'yingbian_damage')){
|
if(get.cardtag(card,'yingbian_damage')){
|
||||||
if(targets.filter(function(target){
|
if(targets.some(target=>{
|
||||||
return get.attitude(player,target)<0&&(hit||!target.mayHaveShan()||player.hasSkillTag('directHit_ai',true,{
|
return get.attitude(player,target)<0&&(hit||!target.mayHaveShan(viewer)||player.hasSkillTag('directHit_ai',true,{
|
||||||
target:target,
|
target:target,
|
||||||
card:card,
|
card:card,
|
||||||
},true))&&!target.hasSkillTag('filterDamage',null,{
|
},true))&&!target.hasSkillTag('filterDamage',null,{
|
||||||
|
|
Loading…
Reference in New Issue