From 1bcd5e02b9e31d6c311d1a9c2da8c0c3c7e81c7a Mon Sep 17 00:00:00 2001 From: kingbirdy Date: Tue, 18 Aug 2015 23:36:09 -0400 Subject: [PATCH] Fix airspout cancelling on right click --- src/com/projectkorra/projectkorra/PKListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/PKListener.java b/src/com/projectkorra/projectkorra/PKListener.java index 9e265e1e..8db2e23d 100644 --- a/src/com/projectkorra/projectkorra/PKListener.java +++ b/src/com/projectkorra/projectkorra/PKListener.java @@ -854,9 +854,10 @@ public class PKListener implements Listener { Player player = event.getPlayer(); if (event.getAction() == Action.RIGHT_CLICK_BLOCK) { - GeneralMethods.cooldowns.put(player.getName(), System.currentTimeMillis()); - ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK); String ability = GeneralMethods.getBoundAbility(player); + if (!ability.equalsIgnoreCase("airspout")) //prevents airspout from cancelling due to right click + GeneralMethods.cooldowns.put(player.getName(), System.currentTimeMillis()); + ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK); if (ability != null && ability.equalsIgnoreCase("EarthSmash")) new EarthSmash(player, ClickType.RIGHT_CLICK); }