v0.9.2: fixed rare vfx issues with barkskin buff icon
This commit is contained in:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user