V0.2.0: Fixed a bug in EarthRoot
This commit is contained in:
parent
1615f5e502
commit
149d199422
|
@ -99,7 +99,7 @@ public class Earthroot extends Plant {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int absorb( int damage ) {
|
public int absorb( int damage ) {
|
||||||
if (level >= damage-damage/2) {
|
if (level <= damage-damage/2) {
|
||||||
detach();
|
detach();
|
||||||
return damage - level;
|
return damage - level;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user