fix
This commit is contained in:
1 parent
37dd5f8cfe
commit
b824f71e63
1 file changed
+10
-11
+10
-11
@@ -9590,26 +9590,25 @@ if(get.type(card)=='basic' && get.type(card)=='trick') flag= true;
|
|||||||
filter(){return true},
|
filter(){return true},
|
||||||
async content(_e,_t,player){
|
async content(_e,_t,player){
|
||||||
player.removeMark('zioy_tanxi', Math.floor(player.countMark('zioy_tanxi')/2))
|
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.discard(p.getCards('hej'))
|
||||||
p.changeHujia(-p.hujia)
|
p.changeHujia(-p.hujia)
|
||||||
const hp = get.infoHp(lib.character[p.name][2]);
|
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]);
|
const maxHp = get.infoMaxHp(lib.character[p.name][2]);
|
||||||
if(p.maxHp > maxHp){
|
if(p.maxHp > maxHp){
|
||||||
p.loseMaxHp(p.maxHp - maxHp)
|
await p.loseMaxHp(p.maxHp - maxHp)
|
||||||
}
|
}
|
||||||
if(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)
|
p.draw(4)
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
order: 2,
|
order: 2,
|
||||||
|
|||||||
Reference in new issue
Block a user