v0.4.0: refactoring for enchant/glyph referencing

This commit is contained in:
Evan Debenham
2016-06-15 03:03:27 -04:00
committed by Evan Debenham
parent 4c8bcade38
commit 912fd447d0
11 changed files with 24 additions and 28 deletions
@@ -83,8 +83,7 @@ public class Burning extends Buff implements Hero.Doom {
Hero hero = (Hero)target;
if (hero.belongings.armor != null && hero.belongings.armor.glyph != null
&& hero.belongings.armor.glyph instanceof Brimstone){
if (hero.belongings.armor != null && hero.belongings.armor.hasGlyph(Brimstone.class)){
int heal = hero.belongings.armor.level()/2;
if (heal > 0 && hero.HP < hero.HT) {