This commit is contained in:
Spmario233 2023-10-09 00:23:56 +08:00
parent 8a04d5f0a0
commit 9d5b8192dc
3 changed files with 5 additions and 3 deletions

View File

@ -225,7 +225,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
value:[3,1], value:[3,1],
useful:1, useful:1,
}, },
wuxie:function(target,card,player,current,state){ wuxie:function(target,card,player,viewer,state){
let att=get.attitude(viewer,target), eff=get.effect(target,card,player,target); let att=get.attitude(viewer,target), eff=get.effect(target,card,player,target);
if(status*get.attitude(viewer,player)>0&&!player.isMad() || status*eff*att>=0) return 0; if(status*get.attitude(viewer,player)>0&&!player.isMad() || status*eff*att>=0) return 0;
if(get.attitude(viewer,player)>=0 || _status.event.getRand('huogong_wuxie')*4>player.countCards('h')) return 0; if(get.attitude(viewer,player)>=0 || _status.event.getRand('huogong_wuxie')*4>player.countCards('h')) return 0;

View File

@ -2870,7 +2870,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
viewAs:{name:'juedou'}, viewAs:{name:'juedou'},
position:'h', position:'h',
filterTarget:lib.filter.targetEnabled, filterTarget:lib.filter.targetEnabled,
check:(card)=>get.name(card)=='sha'?0:5.5-get.value(card); check:(card)=>get.name(card)=='sha'?0:5.5-get.value(card),
log:false, log:false,
precontent:function(){ precontent:function(){
delete event.result.skill; delete event.result.skill;

View File

@ -8487,7 +8487,9 @@
enumerable:false, enumerable:false,
writable:true, writable:true,
value:function(){ value:function(){
for(const i of Array.from(arguments)) this.add(...i); for(const arr of arguments){
for(const item of arr) this.add(item);
}
return this; return this;
} }
}); });