修复新杀清河公主【长姬】结算顺序bug

This commit is contained in:
mengxinzxz 2024-01-22 03:40:36 +08:00
parent 6d959e131f
commit f93800fa43
1 changed files with 3 additions and 2 deletions

View File

@ -121,8 +121,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
forced:true,
logTarget:'player',
content:function*(event,map){
const player=map.player;
let trigger=map.trigger,targets=trigger.targets.slice();
const player=map.player,trigger=map.trigger,target=trigger.player;
let targets=trigger.targets.slice();
targets.sortBySeat((_status.currentPhase||target));
targets.remove(player);
player.when({global:'useCardToTargeted'}).filter(evt=>targets.length&&evt.getParent()==trigger&&evt.targets.length==evt.getParent().triggeredTargets4.length).then(()=>{
trigger.getParent().targets=[player].concat(targets);