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

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;
},
frequent:true,
content(){
'step 0'
player.judge();
'step 1'
async content(event,trigger,player){
const {result} = await player.judge();
let num = 0;
game.getGlobalHistory('cardMove',evt=>{
if(evt.name!='cardsDiscard'){

View File

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

View File

@ -1372,7 +1372,9 @@ export const Content = {
if (!evt.orderingCards) evt.orderingCards = [];
if (!evt.noOrdering && !evt.cardsOrdered) {
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.setContent('orderingDiscard');
}
@ -7512,7 +7514,9 @@ export const Content = {
if (!evt.orderingCards) evt.orderingCards = [];
if (!evt.noOrdering && !evt.cardsOrdered) {
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.setContent('orderingDiscard');
}