fix
This commit is contained in:
1 parent
b824f71e63
commit
5284b14831
1 file changed
+15
-13
+15
-13
@@ -9593,19 +9593,21 @@ 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)
|
||||||
const hp = get.infoHp(lib.character[p.name][2]);
|
if(p.name !== 'unknown'){
|
||||||
const maxHp = get.infoMaxHp(lib.character[p.name][2]);
|
const hp = get.infoHp(lib.character[p.name][2]);
|
||||||
if(p.maxHp > maxHp){
|
const maxHp = get.infoMaxHp(lib.character[p.name][2]);
|
||||||
await p.loseMaxHp(p.maxHp - maxHp)
|
if(p.maxHp > maxHp){
|
||||||
}
|
await p.loseMaxHp(p.maxHp - maxHp)
|
||||||
if(p.maxHp < maxHp){
|
}
|
||||||
await p.gainMaxHp(maxHp - p.maxHp)
|
if(p.maxHp < maxHp){
|
||||||
}
|
await p.gainMaxHp(maxHp - p.maxHp)
|
||||||
if(p.hp > hp){
|
}
|
||||||
await p.loseHp(p.hp - hp)
|
if(p.hp > hp){
|
||||||
}
|
await p.loseHp(p.hp - hp)
|
||||||
if(p.hp < hp){
|
}
|
||||||
await p.recover(hp - p.hp)
|
if(p.hp < hp){
|
||||||
|
await p.recover(hp - p.hp)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
p.draw(4)
|
p.draw(4)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user