v0.7.4b: fixed armor being incorrectly applied after recent living earth change
This commit is contained in:
+3
-3
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user