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

View File

@@ -1611,11 +1611,9 @@ public class Hero extends Char {
Ankh ankh = null;
//look for ankhs in player inventory, prioritize ones which are blessed.
for (Item item : belongings){
if (item instanceof Ankh) {
if (ankh == null || ((Ankh) item).isBlessed()) {
ankh = (Ankh) item;
}
for (Ankh i : belongings.getAllItems(Ankh.class)){
if (ankh == null || i.isBlessed()) {
ankh = i;
}
}