From 57e1ad46ed47851df93e627298452fedb542495c Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Sat, 19 Aug 2023 23:01:04 -0700 Subject: [PATCH] Fix lib.element.content.addToExpansion. --- game/game.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/game/game.js b/game/game.js index 6b555eeda..91096c0ef 100644 --- a/game/game.js +++ b/game/game.js @@ -17189,7 +17189,7 @@ } if(event.animate=='draw'){ player.$draw(cards.length); - game.log(player,'将',get.cnNumber(cards.length),'张牌置于了武将牌上'); + if(event.log) game.log(player,'将',get.cnNumber(cards.length),'张牌置于了武将牌上'); game.pause(); setTimeout(function(){ player.$addToExpansion(cards,null,event.gaintag); @@ -17223,8 +17223,8 @@ if(event.animate=='give'){ for(var i in evtmap){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; - source.$give(evtmap[i][0],player); - game.log(player,'将',get.cnNumber(evtmap[i][0]),'置于了武将牌上'); + source.$give(evtmap[i][0],player,false); + if(event.log) game.log(player,'将',evtmap[i][0],'置于了武将牌上'); } } else{ @@ -17232,11 +17232,11 @@ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; if(evtmap[i][1].length){ source.$giveAuto(evtmap[i][1],player,false); - game.log(player,'将',get.cnNumber(evtmap[i][1].length),'张牌置于了武将牌上'); + if(event.log) game.log(player,'将',get.cnNumber(evtmap[i][1].length),'张牌置于了武将牌上'); } if(evtmap[i][2].length){ source.$give(evtmap[i][2],player,false); - game.log(player,'将',get.cnNumber(evtmap[i][2]),'置于了武将牌上'); + if(event.log) game.log(player,'将',evtmap[i][2],'置于了武将牌上'); } } } @@ -17261,9 +17261,6 @@ for(var i of event.gaintag) player.markSkill(i); event.finish(); } - if(event.log){ - game.log(player,'将',cards,'置于了武将牌上'); - } "step 4" game.delayx(); if(event.updatePile) game.updateRoundNumber();