addhp不应该取整

This commit is contained in:
ciniao 2024-01-10 23:08:14 +08:00 committed by xichaoyin
parent a8d0a87f72
commit 0947bc386e

View File

@ -318,7 +318,7 @@ export class HeroShared {
static amendAttr(buff: k_v<number>) {
for (let k in buff) {
if (typeof buff[k] != 'number') continue;
if (k.indexOf('pro') != -1 || k.indexOf('drop') != -1) continue;
if (k.indexOf('pro') != -1 || k.indexOf('drop') != -1 || k=='addhp') continue;
buff[k] = Math.floor(buff[k]);
}
}