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);
|
// timers.put(player, time);
|
||||||
//instances.put(player, this);
|
//instances.put(player, this);
|
||||||
putInstance(player, this);
|
putInstance(player, this);
|
||||||
GeneralMethods.invincible.add(this);
|
|
||||||
bPlayer.addCooldown("FireJet", config.get().getLong("Abilities.Fire.FireJet.Cooldown"));
|
bPlayer.addCooldown("FireJet", config.get().getLong("Abilities.Fire.FireJet.Cooldown"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,6 +131,12 @@ public class FireJet extends CoreAbility {
|
||||||
defaultduration = config.get().getLong("Abilities.Fire.FireJet.Duration");
|
defaultduration = config.get().getLong("Abilities.Fire.FireJet.Duration");
|
||||||
isToggle = config.get().getBoolean("Abilities.Fire.FireJet.IsAvatarStateToggle");
|
isToggle = config.get().getBoolean("Abilities.Fire.FireJet.IsAvatarStateToggle");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
super.remove();
|
||||||
|
GeneralMethods.invincible.remove(this);
|
||||||
|
}
|
||||||
|
|
||||||
public void setDuration(long duration) {
|
public void setDuration(long duration) {
|
||||||
this.duration = duration;
|
this.duration = duration;
|
||||||
|
|
Loading…
Reference in a new issue