fix
This commit is contained in:
1 parent
d99041a005
commit
5eac5b1715
1 file changed
+7
-7
+7
-7
@@ -9593,13 +9593,6 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
|
||||
game.players.forEach(p=>{
|
||||
p.discard(p.getCards('hej'))
|
||||
p.changeHujia(-p.hujia)
|
||||
const maxHp = get.infoMaxHp(lib.character[p.name][2]);
|
||||
if(p.maxHp > maxHp){
|
||||
p.loseMaxHp(p.maxHp - maxHp)
|
||||
}
|
||||
if(p.maxHp < maxHp){
|
||||
p.gainMaxHp(maxHp - p.maxHp)
|
||||
}
|
||||
const hp = get.infoHp(lib.character[p.name][2]);
|
||||
if(p.hp > hp){
|
||||
p.loseHp(p.hp - hp)
|
||||
@@ -9607,6 +9600,13 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
|
||||
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)
|
||||
}
|
||||
if(p.maxHp < maxHp){
|
||||
p.gainMaxHp(maxHp - p.maxHp)
|
||||
}
|
||||
// p.recover(p.maxHp - p.hp)
|
||||
p.draw(4)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user