卢植 bug修复

This commit is contained in:
Spmario233 2024-05-24 10:11:08 +08:00
parent 20178e7e12
commit 86d812dc18
1 changed files with 2 additions and 2 deletions

View File

@ -392,8 +392,8 @@ const skills = {
if (targets.length === 0) return false;
return targets.reduce((p, c) => {
let eff = get.damageEffect(c, player, player);
if (eff < 0 && current.hp <= 2) {
const att = get.attitude(player, current);
if (eff < 0 && c.hp <= 2) {
const att = get.attitude(player, c);
if (att > 0) eff *= Math.sqrt(att);
}
return p + eff;