mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-12 17:59:40 +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();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
|
String ability = GeneralMethods.getBoundAbility(player);
|
||||||
|
if (!ability.equalsIgnoreCase("airspout")) //prevents airspout from cancelling due to right click
|
||||||
GeneralMethods.cooldowns.put(player.getName(), System.currentTimeMillis());
|
GeneralMethods.cooldowns.put(player.getName(), System.currentTimeMillis());
|
||||||
ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK);
|
ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK);
|
||||||
String ability = GeneralMethods.getBoundAbility(player);
|
|
||||||
if (ability != null && ability.equalsIgnoreCase("EarthSmash"))
|
if (ability != null && ability.equalsIgnoreCase("EarthSmash"))
|
||||||
new EarthSmash(player, ClickType.RIGHT_CLICK);
|
new EarthSmash(player, ClickType.RIGHT_CLICK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue