v0.9.2: fixed rare vfx issues with barkskin buff icon

This commit is contained in:
Evan Debenham 2021-02-21 22:25:07 -05:00
parent 13588b1699
commit 4a31acf50e

View File

@ -75,7 +75,7 @@ public class Barkskin extends Buff {
public float iconFadePercent() { public float iconFadePercent() {
if (target instanceof Hero){ if (target instanceof Hero){
float max = ((Hero) target).lvl; float max = ((Hero) target).lvl;
return (max-level)/max; return Math.max(0, (max-level)/max);
} }
return 0; return 0;
} }