V0.2.0: Corrected a logic flaw in earthroot buff
This commit is contained in:
parent
20b59a372d
commit
0c06bd0719
|
@ -99,7 +99,7 @@ public class Earthroot extends Plant {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int absorb( int damage ) {
|
public int absorb( int damage ) {
|
||||||
if (damage*2 >= level) {
|
if (level >= damage-damage/2) {
|
||||||
detach();
|
detach();
|
||||||
return damage - level;
|
return damage - level;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user