mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-04 11:15:21 +00:00
Add remove call to QuickStrike
This commit is contained in:
parent
d8936f8ba8
commit
1836888070
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue