update sp2.js

This commit is contained in:
Spmario233 2023-09-18 20:57:34 +08:00
parent b1bf033c36
commit 9ae9cd556a
2 changed files with 2 additions and 4 deletions

View File

@ -1098,7 +1098,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
forced:true,
charlotte:true,
filter:(event,player)=>{
return true;
var num=player.getStorage('olqifan').length,pos=('jeh').slice(0,num);
return num>0&&player.countCards(pos)>0;
},
@ -1123,10 +1122,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.result.card=card;
player.markAuto('olqifan',[get.type2(card,false)]);
var id=get.id();
event.getParent().set('olqifan_discard',id);
player.when('chooseToUseAfter')
.filter((evt)=>evt==event.getParent())
.filter(lib.skill.olqifan_discard.filter)
.filter((event)=>event.olqifan_discard==id)
.then(()=>{
event.maxNum=Math.min(3,player.getStorage('olqifan').length);
event.num=0;

View File

@ -2045,7 +2045,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var target=trigger.target;
event.target=target;
trigger.targets.remove(target);
trigger.triggeredTargets1.remove(target);
//trigger.triggeredTargets1.remove(target);
trigger.untrigger();
game.delayx();
'step 1'