This commit is contained in:
539943419 committed 2024-07-27 22:34:20 +08:00
1 parent b824f71e63
commit 5284b14831
1 file changed
+2
+2
View File
@@ -9593,6 +9593,7 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
for(let p of game.players){ for(let p of game.players){
p.discard(p.getCards('hej')) p.discard(p.getCards('hej'))
p.changeHujia(-p.hujia) p.changeHujia(-p.hujia)
if(p.name !== 'unknown'){
const hp = get.infoHp(lib.character[p.name][2]); const hp = get.infoHp(lib.character[p.name][2]);
const maxHp = get.infoMaxHp(lib.character[p.name][2]); const maxHp = get.infoMaxHp(lib.character[p.name][2]);
if(p.maxHp > maxHp){ if(p.maxHp > maxHp){
@@ -9607,6 +9608,7 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
if(p.hp < hp){ if(p.hp < hp){
await p.recover(hp - p.hp) await p.recover(hp - p.hp)
} }
}
p.draw(4) p.draw(4)
} }
}, },