mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +00:00
Fix all chi abilities not respecting cooldowns
This commit is contained in:
parent
857bf0c050
commit
68b7116bc4
|
@ -16,6 +16,9 @@ public class AcrobatStance extends ChiAbility {
|
|||
|
||||
public AcrobatStance(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.speed = getConfig().getInt("Abilities.Chi.AcrobatStance.Speed");
|
||||
this.jump = getConfig().getInt("Abilities.Chi.AcrobatStance.Jump");
|
||||
|
|
|
@ -17,6 +17,9 @@ public class HighJump extends ChiAbility {
|
|||
|
||||
public HighJump(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.height = ProjectKorra.plugin.getConfig().getInt("Abilities.Chi.HighJump.Height");
|
||||
this.cooldown = ProjectKorra.plugin.getConfig().getInt("Abilities.Chi.HighJump.Cooldown");
|
||||
start();
|
||||
|
|
|
@ -22,6 +22,9 @@ public class Paralyze extends ChiAbility {
|
|||
|
||||
public Paralyze(Player sourceplayer, Entity targetentity) {
|
||||
super(sourceplayer);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.target = targetentity;
|
||||
this.cooldown = getConfig().getLong("Abilities.Chi.Paralyze.Cooldown");
|
||||
start();
|
||||
|
|
|
@ -15,6 +15,9 @@ public class QuickStrike extends ChiAbility {
|
|||
|
||||
public QuickStrike(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.damage = getConfig().getInt("Abilities.Chi.QuickStrike.Damage");
|
||||
this.blockChance = getConfig().getInt("Abilities.Chi.QuickStrike.ChiBlockChance");
|
||||
target = GeneralMethods.getTargetedEntity(player, 2);
|
||||
|
|
|
@ -20,6 +20,9 @@ public class RapidPunch extends ChiAbility {
|
|||
|
||||
public RapidPunch(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.damage = getConfig().getInt("Abilities.Chi.RapidPunch.Damage");
|
||||
this.punches = getConfig().getInt("Abilities.Chi.RapidPunch.Punches");
|
||||
this.distance = getConfig().getInt("Abilities.Chi.RapidPunch.Distance");
|
||||
|
|
|
@ -16,6 +16,9 @@ public class SwiftKick extends ChiAbility {
|
|||
|
||||
public SwiftKick(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.damage = getConfig().getInt("Abilities.Chi.SwiftKick.Damage");
|
||||
this.blockChance = getConfig().getInt("Abilities.Chi.ChiCombo.ChiBlockChance");
|
||||
this.cooldown = getConfig().getInt("Abilities.Chi.ChiCombo.Cooldown");
|
||||
|
|
|
@ -14,6 +14,9 @@ public class WarriorStance extends ChiAbility {
|
|||
|
||||
public WarriorStance(Player player) {
|
||||
super(player);
|
||||
if (!bPlayer.canBend(this)) {
|
||||
return;
|
||||
}
|
||||
this.strength = getConfig().getInt("Abilities.Chi.WarriorStance.Strength");
|
||||
this.resistance = getConfig().getInt("Abilities.Chi.WarriorStance.Resistance");
|
||||
|
||||
|
|
Loading…
Reference in a new issue