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