v1.3.2: fixed items being usable when hero is dead

This commit is contained in:
Evan Debenham
2022-07-24 17:31:57 -04:00
parent 771805a4c6
commit 2b4efb7090

View File

@@ -507,6 +507,10 @@ public class InventoryPane extends Component {
return;
}
if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){
return;
}
if (targeting){
if (targetingSlot == this){
onClick();
@@ -532,6 +536,10 @@ public class InventoryPane extends Component {
return;
}
if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){
return;
}
if (targeting){
//do nothing
return;