调整处理区的牌进入弃牌堆的处理机制

This commit is contained in:
Spmario233 2024-01-25 22:44:10 +08:00
parent 2f14771f2a
commit 21185a0754
3 changed files with 10 additions and 15 deletions

View File

@ -1806,10 +1806,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.getHistory('lose').length; return player.getHistory('lose').length;
}, },
frequent:true, frequent:true,
content(){ async content(event,trigger,player){
'step 0' const {result} = await player.judge();
player.judge();
'step 1'
let num = 0; let num = 0;
game.getGlobalHistory('cardMove',evt=>{ game.getGlobalHistory('cardMove',evt=>{
if(evt.name!='cardsDiscard'){ if(evt.name!='cardsDiscard'){

View File

@ -4773,15 +4773,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 3' 'step 3'
if(result.bool) target.addExpose(0.1); if(result.bool) target.addExpose(0.1);
else{ else{
var next=game.createEvent('twdingzhen_addSkill'); target.addSkill('twdingzhen_target');
event.next.remove(next); target.markAuto('twdingzhen_target',[player]);
trigger.after.push(next);
next.target=target;
next.player=player;
next.setContent(function(){
target.addSkill('twdingzhen_target');
target.markAuto('twdingzhen_target',[player]);
})
} }
'step 4' 'step 4'
if(event.num<event.targets.length-1){ if(event.num<event.targets.length-1){

View File

@ -1372,7 +1372,9 @@ export const Content = {
if (!evt.orderingCards) evt.orderingCards = []; if (!evt.orderingCards) evt.orderingCards = [];
if (!evt.noOrdering && !evt.cardsOrdered) { if (!evt.noOrdering && !evt.cardsOrdered) {
evt.cardsOrdered = true; evt.cardsOrdered = true;
var next = game.createEvent('orderingDiscard', false, evt.getParent()); var next = game.createEvent('orderingDiscard', false);
event.next.remove(next);
evt.after.push(next);
next.relatedEvent = evt; next.relatedEvent = evt;
next.setContent('orderingDiscard'); next.setContent('orderingDiscard');
} }
@ -7512,7 +7514,9 @@ export const Content = {
if (!evt.orderingCards) evt.orderingCards = []; if (!evt.orderingCards) evt.orderingCards = [];
if (!evt.noOrdering && !evt.cardsOrdered) { if (!evt.noOrdering && !evt.cardsOrdered) {
evt.cardsOrdered = true; evt.cardsOrdered = true;
var next = game.createEvent('orderingDiscard', false, evt.getParent()); var next = game.createEvent('orderingDiscard', false);
event.next.remove(next);
evt.after.push(next);
next.relatedEvent = evt; next.relatedEvent = evt;
next.setContent('orderingDiscard'); next.setContent('orderingDiscard');
} }