修复【共患】全局ai失效的bug
This commit is contained in:
parent
9cfa4c92ba
commit
89e476a88f
|
@ -3331,16 +3331,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
if(_status.luanchou_judging) return;
|
if(_status.luanchou_judging) return;
|
||||||
_status.luanchou_judging=true;
|
|
||||||
if(get.tag(card,'damage')&&target.hasMark('luanchou')){
|
if(get.tag(card,'damage')&&target.hasMark('luanchou')){
|
||||||
var other=game.findPlayer(function(current){
|
var other=game.findPlayer(function(current){
|
||||||
return current!=target&¤t.hasMark('luanchou')&¤t.hp>target.hp&&(!current.storage.counttrigger||!current.storage.counttrigger.gonghuan);
|
return current!=target&¤t.hasMark('luanchou')&¤t.hp>target.hp&&(!current.storage.counttrigger||!current.storage.counttrigger.gonghuan);
|
||||||
});
|
});
|
||||||
if(!other){
|
if(!other) return;
|
||||||
delete _status.luanchou_judging;
|
_status.luanchou_judging=true;
|
||||||
return;
|
var eff=[0,0,0,get.damageEffect(other,player,player,get.nature(card))/get.attitude(player,player)];
|
||||||
};
|
|
||||||
var eff=[0,0,0,get.damageEffect(other,player,target,get.nature(card))];
|
|
||||||
delete _status.luanchou_judging;
|
delete _status.luanchou_judging;
|
||||||
return eff;
|
return eff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue