v1.3.2: fixed items being usable when hero is dead
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user