Fix all chi abilities not respecting cooldowns

This commit is contained in:
jedk1 2016-02-02 23:59:16 +00:00
parent 857bf0c050
commit 68b7116bc4
7 changed files with 21 additions and 0 deletions

View file

@ -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");

View file

@ -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();

View file

@ -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();

View file

@ -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);

View file

@ -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");

View file

@ -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");

View file

@ -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");