Add remove call to QuickStrike

This commit is contained in:
jedk1 2016-02-23 22:12:24 +00:00
parent d8936f8ba8
commit 1836888070

View file

@ -21,6 +21,9 @@ public class QuickStrike extends ChiAbility {
this.damage = getConfig().getInt("Abilities.Chi.QuickStrike.Damage"); this.damage = getConfig().getInt("Abilities.Chi.QuickStrike.Damage");
this.blockChance = getConfig().getInt("Abilities.Chi.QuickStrike.ChiBlockChance"); this.blockChance = getConfig().getInt("Abilities.Chi.QuickStrike.ChiBlockChance");
target = GeneralMethods.getTargetedEntity(player, 2); target = GeneralMethods.getTargetedEntity(player, 2);
if (target == null) {
return;
}
start(); start();
} }
@ -28,6 +31,7 @@ public class QuickStrike extends ChiAbility {
@Override @Override
public void progress() { public void progress() {
if (target == null) { if (target == null) {
remove();
return; return;
} }