mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-12 09:57:54 +00:00
Fix airspout cancelling on right click
This commit is contained in:
parent
18ab899f27
commit
1bcd5e02b9
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue