v0.2.2: fixed a bug with the ankh

This commit is contained in:
Evan Debenham 2014-11-02 19:39:16 -05:00
parent ad597172ce
commit eeca1cb7db

View File

@ -68,7 +68,7 @@ public class Ankh extends Item {
public ArrayList<String> actions( Hero hero ) { public ArrayList<String> actions( Hero hero ) {
ArrayList<String> actions = super.actions(hero); ArrayList<String> actions = super.actions(hero);
DewVial vial = hero.belongings.getItem(DewVial.class); DewVial vial = hero.belongings.getItem(DewVial.class);
if (vial != null && vial.isFull()) if (vial != null && vial.isFull() && !blessed)
actions.add( AC_BLESS ); actions.add( AC_BLESS );
return actions; return actions;
} }