V0.2.0: Corrected a logic flaw in earthroot buff

This commit is contained in:
Evan Debenham 2014-09-08 09:35:26 -04:00
parent 20b59a372d
commit 0c06bd0719

View File

@ -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 {