修复庞山民【才思】发动次数bug

This commit is contained in:
157 2024-01-24 14:49:06 +08:00
parent 0ae14585dc
commit 37d8667b45
1 changed files with 5 additions and 1 deletions

View File

@ -757,7 +757,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'useCardAfter'}, trigger:{player:'useCardAfter'},
filter:function(event,player){ filter:function(event,player){
if(get.type(event.card)!='basic') return false; if(get.type(event.card)!='basic') return false;
if(player.getHistory('gain',evt=>evt.getParent().name=='dccaisi').length>player.maxHp) return false; if(player.getHistory('gain',evt=>{
return evt.getParent().name==='dccaisi';
}).reduce((num,evt)=>{
return num+evt.cards.length;
},0)>player.maxHp) return false;
return _status.currentPhase; return _status.currentPhase;
}, },
prompt2:function(event,player){ prompt2:function(event,player){