This commit is contained in:
539943419 committed 2024-07-27 15:34:47 +08:00
1 parent 37dd5f8cfe
commit b824f71e63
1 file changed
+10 -11
+10 -11
View File
@@ -9590,26 +9590,25 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
filter(){return true},
async content(_e,_t,player){
player.removeMark('zioy_tanxi', Math.floor(player.countMark('zioy_tanxi')/2))
game.players.forEach(p=>{
for(let p of game.players){
p.discard(p.getCards('hej'))
p.changeHujia(-p.hujia)
const hp = get.infoHp(lib.character[p.name][2]);
if(p.hp > hp){
p.loseHp(p.hp - hp)
}
if(p.hp < hp){
p.recover(hp - p.hp)
}
const maxHp = get.infoMaxHp(lib.character[p.name][2]);
if(p.maxHp > maxHp){
p.loseMaxHp(p.maxHp - maxHp)
await p.loseMaxHp(p.maxHp - maxHp)
}
if(p.maxHp < maxHp){
p.gainMaxHp(maxHp - p.maxHp)
await p.gainMaxHp(maxHp - p.maxHp)
}
if(p.hp > hp){
await p.loseHp(p.hp - hp)
}
if(p.hp < hp){
await p.recover(hp - p.hp)
}
// p.recover(p.maxHp - p.hp)
p.draw(4)
})
}
},
ai: {
order: 2,