v0.9.1: added a safety check on quickslot buttons
This commit is contained in:
@@ -78,6 +78,9 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||
slot = new ItemSlot() {
|
||||
@Override
|
||||
protected void onClick() {
|
||||
if (!Dungeon.hero.isAlive()){
|
||||
return;
|
||||
}
|
||||
if (targeting) {
|
||||
int cell = autoAim(lastTarget, select(slotNum));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user