v1.0.1: fixed ankh resurrection not respecting lost inventory debuff
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user