v1.0.1: fixed ankh resurrection not respecting lost inventory debuff

This commit is contained in:
Evan Debenham
2021-08-19 16:05:35 -04:00
parent 6701b59d1e
commit 2b16d3aadb
@@ -1611,11 +1611,9 @@ public class Hero extends Char {
Ankh ankh = null; Ankh ankh = null;
//look for ankhs in player inventory, prioritize ones which are blessed. //look for ankhs in player inventory, prioritize ones which are blessed.
for (Item item : belongings){ for (Ankh i : belongings.getAllItems(Ankh.class)){
if (item instanceof Ankh) { if (ankh == null || i.isBlessed()) {
if (ankh == null || ((Ankh) item).isBlessed()) { ankh = i;
ankh = (Ankh) item;
}
} }
} }