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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (targeting){
|
if (targeting){
|
||||||
if (targetingSlot == this){
|
if (targetingSlot == this){
|
||||||
onClick();
|
onClick();
|
||||||
@@ -532,6 +536,10 @@ public class InventoryPane extends Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (targeting){
|
if (targeting){
|
||||||
//do nothing
|
//do nothing
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user