魏司马师【震扰】bugfix

This commit is contained in:
mengxinzxz 2024-03-13 17:52:34 +08:00
parent a024c2550c
commit dd1bac0a89
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
direct:true, direct:true,
async content(event,trigger,player){ async content(event,trigger,player){
const result=await player.chooseTarget(get.prompt('dczhenrao'),'对一名可选角色造成1点伤害',(card,player,target)=>{ const result=await player.chooseTarget(get.prompt('dczhenrao'),'对一名可选角色造成1点伤害',(card,player,target)=>{
return get.event('targets').includes(target); return get.event('targets').includes(target)&&!player.getStorage('dczhenrao').includes(target);
}) })
.set('targets',trigger.targets.concat(trigger.player).filter(target=>target.countCards('h')>player.countCards('h'))) .set('targets',trigger.targets.concat(trigger.player).filter(target=>target.countCards('h')>player.countCards('h')))
.set('ai',target=>{ .set('ai',target=>{