Skip to content

Commit

Permalink
update sp2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Spmario233 committed Sep 18, 2023
1 parent b1bf033 commit 9ae9cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions character/sp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion character/sp2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9ae9cd5

Please sign in to comment.