Fix lib.element.content.addToExpansion.

This commit is contained in:
Tipx-L 2023-08-19 23:01:04 -07:00
parent a9935c1ee3
commit 57e1ad46ed
1 changed files with 5 additions and 8 deletions

View File

@ -17189,7 +17189,7 @@
} }
if(event.animate=='draw'){ if(event.animate=='draw'){
player.$draw(cards.length); player.$draw(cards.length);
game.log(player,'将',get.cnNumber(cards.length),'张牌置于了武将牌上'); if(event.log) game.log(player,'将',get.cnNumber(cards.length),'张牌置于了武将牌上');
game.pause(); game.pause();
setTimeout(function(){ setTimeout(function(){
player.$addToExpansion(cards,null,event.gaintag); player.$addToExpansion(cards,null,event.gaintag);
@ -17223,8 +17223,8 @@
if(event.animate=='give'){ if(event.animate=='give'){
for(var i in evtmap){ for(var i in evtmap){
var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; var source=(_status.connectMode?lib.playerOL:game.playerMap)[i];
source.$give(evtmap[i][0],player); source.$give(evtmap[i][0],player,false);
game.log(player,'将',get.cnNumber(evtmap[i][0]),'置于了武将牌上'); if(event.log) game.log(player,'将',evtmap[i][0],'置于了武将牌上');
} }
} }
else{ else{
@ -17232,11 +17232,11 @@
var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; var source=(_status.connectMode?lib.playerOL:game.playerMap)[i];
if(evtmap[i][1].length){ if(evtmap[i][1].length){
source.$giveAuto(evtmap[i][1],player,false); 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){ if(evtmap[i][2].length){
source.$give(evtmap[i][2],player,false); 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); for(var i of event.gaintag) player.markSkill(i);
event.finish(); event.finish();
} }
if(event.log){
game.log(player,'将',cards,'置于了武将牌上');
}
"step 4" "step 4"
game.delayx(); game.delayx();
if(event.updatePile) game.updateRoundNumber(); if(event.updatePile) game.updateRoundNumber();