mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix EarthBlast
This commit is contained in:
parent
efacd58e34
commit
e838c583dd
1 changed files with 16 additions and 14 deletions
|
@ -239,7 +239,7 @@ public class EarthBlast {
|
||||||
unfocusBlock();
|
unfocusBlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Methods.getBoundAbility(player).equalsIgnoreCase("EarthBlast")) {
|
if (!Methods.getBoundAbility(player).equalsIgnoreCase("EarthBlast")) {
|
||||||
unfocusBlock();
|
unfocusBlock();
|
||||||
return false;
|
return false;
|
||||||
|
@ -465,20 +465,22 @@ public class EarthBlast {
|
||||||
if (cooldowns.get(player.getName()) + ProjectKorra.plugin.getConfig().getLong("Properties.GlobalCooldown") >= System.currentTimeMillis()) {
|
if (cooldowns.get(player.getName()) + ProjectKorra.plugin.getConfig().getLong("Properties.GlobalCooldown") >= System.currentTimeMillis()) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
boolean cooldown = false;
|
cooldowns.remove(player.getName());
|
||||||
for (int id : instances.keySet()) {
|
|
||||||
EarthBlast blast = instances.get(id);
|
|
||||||
if (blast.player == player && !blast.progressing) {
|
|
||||||
blast.throwEarth();
|
|
||||||
cooldown = true;
|
|
||||||
ignore.add(blast);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cooldown)
|
|
||||||
cooldowns.put(player.getName(), System.currentTimeMillis());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
boolean cooldown = false;
|
||||||
|
for (int id : instances.keySet()) {
|
||||||
|
EarthBlast blast = instances.get(id);
|
||||||
|
if (blast.player == player && !blast.progressing) {
|
||||||
|
blast.throwEarth();
|
||||||
|
cooldown = true;
|
||||||
|
ignore.add(blast);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cooldown)
|
||||||
|
cooldowns.put(player.getName(), System.currentTimeMillis());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
redirectTargettedBlasts(player, ignore);
|
redirectTargettedBlasts(player, ignore);
|
||||||
|
|
Loading…
Reference in a new issue