v0.9.2: fixed rare vfx issues with barkskin buff icon
This commit is contained in:
parent
13588b1699
commit
4a31acf50e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user