v0.7.4b: fixed armor being incorrectly applied after recent living earth change

This commit is contained in:
Evan Debenham 2019-08-07 16:25:34 -04:00
parent 777b5da507
commit 8ec14c341e

View File

@ -222,10 +222,10 @@ public class WandOfLivingEarth extends DamageWand {
private int wandLevel; private int wandLevel;
private int armor; private int armor;
private void addArmor( int wandLevel, int armor ){ private void addArmor( int wandLevel, int toAdd ){
this.wandLevel = Math.max(this.wandLevel, wandLevel); this.wandLevel = Math.max(this.wandLevel, wandLevel);
this.armor += armor; armor += toAdd;
this.armor = Math.min(armor, 2*armorToGuardian()); armor = Math.min(armor, 2*armorToGuardian());
} }
private int armorToGuardian(){ private int armorToGuardian(){