mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Merge pull request #286 from Simplicitee/patch-22
Fix invincible FireJet
This commit is contained in:
commit
a8709e6086
1 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,6 @@ public class FireJet extends CoreAbility {
|
|||
// timers.put(player, time);
|
||||
//instances.put(player, this);
|
||||
putInstance(player, this);
|
||||
GeneralMethods.invincible.add(this);
|
||||
bPlayer.addCooldown("FireJet", config.get().getLong("Abilities.Fire.FireJet.Cooldown"));
|
||||
}
|
||||
|
||||
|
@ -133,6 +132,12 @@ public class FireJet extends CoreAbility {
|
|||
isToggle = config.get().getBoolean("Abilities.Fire.FireJet.IsAvatarStateToggle");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
super.remove();
|
||||
GeneralMethods.invincible.remove(this);
|
||||
}
|
||||
|
||||
public void setDuration(long duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue