From d1a8719ae5ab8f12623c694197b51069a64146f8 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Tue, 19 Mar 2019 21:03:06 -0700 Subject: [PATCH] Added casting on mobile --- core/src/com/riiablo/panel/MobileControls.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/riiablo/panel/MobileControls.java b/core/src/com/riiablo/panel/MobileControls.java index 1f965e66..61db081b 100644 --- a/core/src/com/riiablo/panel/MobileControls.java +++ b/core/src/com/riiablo/panel/MobileControls.java @@ -96,8 +96,8 @@ public class MobileControls extends WidgetGroup implements Disposable { @Override public void tap(InputEvent event, float x, float y, int count, int button) { gameScreen.spellsQuickPanelR.setVisible(false); - Button actor = (Button) event.getListenerActor(); - // TODO: cast spell + HotkeyButton actor = (HotkeyButton) event.getListenerActor(); + gameScreen.player.cast(actor.getSkill()); } }; gestureListener.getGestureDetector().setLongPressSeconds(0.5f);