From 2e15f730abf3d7852fda297d383ad4ce201da989 Mon Sep 17 00:00:00 2001 From: copcap Date: Thu, 28 Sep 2023 16:35:16 +0800 Subject: [PATCH] fix3 --- character/refresh.js | 2 +- character/xianding.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/character/refresh.js b/character/refresh.js index 8f93e023b..c8f65b046 100755 --- a/character/refresh.js +++ b/character/refresh.js @@ -260,7 +260,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ event.result.card=viewAs; event.result.cards=[]; if(!player.storage.rehuomo){ - player.when('phaseAfter').then(()=>{player.unmarkSkill('rehuomo')}); + player.when({global:'phaseAfter'}).then(()=>{player.unmarkSkill('rehuomo')}); } player.markAuto('rehuomo',viewAs.name) }, diff --git a/character/xianding.js b/character/xianding.js index 02f281938..ae5258aee 100644 --- a/character/xianding.js +++ b/character/xianding.js @@ -190,7 +190,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var target=result.targets[0]; player.logSkill('dcshangyu_transfer',target); if(!player.storage.dcshangyu_transfer){ - player.when('phaseAfter') + player.when({global:'phaseAfter'}) .then(()=>{ player.unmarkSkill('dcshangyu_transfer'); delete player.storage.dcshangyu_transfer;