mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +00:00
Merge pull request #159 from OmniCypher-/master
Bug Fixes: AS NPE, Water Wave cooldown, Immobilize cooldown, and Firetick Config
This commit is contained in:
commit
3573b2efde
4 changed files with 22 additions and 9 deletions
|
@ -79,10 +79,12 @@ public class AvatarState {
|
||||||
}
|
}
|
||||||
if (!GeneralMethods.canBend(player.getName(), StockAbilities.AvatarState.name())) {
|
if (!GeneralMethods.canBend(player.getName(), StockAbilities.AvatarState.name())) {
|
||||||
instances.remove(player);
|
instances.remove(player);
|
||||||
if(GeneralMethods.getBendingPlayer(player.getName()).isOnCooldown("AvatarState")) {
|
if(player != null){
|
||||||
GeneralMethods.getBendingPlayer(player.getName()).removeCooldown("AvatarState");
|
if(GeneralMethods.getBendingPlayer(player.getName()).isOnCooldown("AvatarState")) {
|
||||||
}
|
GeneralMethods.getBendingPlayer(player.getName()).removeCooldown("AvatarState");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (startTimes.containsKey(player.getName())) {
|
if (startTimes.containsKey(player.getName())) {
|
||||||
|
|
|
@ -504,7 +504,7 @@ public class ConfigManager {
|
||||||
config.addDefault("Abilities.Water.WaterSpout.Wave.ChargeTime", 1000);
|
config.addDefault("Abilities.Water.WaterSpout.Wave.ChargeTime", 1000);
|
||||||
config.addDefault("Abilities.Water.WaterSpout.Wave.FlightTime", 2000);
|
config.addDefault("Abilities.Water.WaterSpout.Wave.FlightTime", 2000);
|
||||||
config.addDefault("Abilities.Water.WaterSpout.Wave.Speed", 1.2);
|
config.addDefault("Abilities.Water.WaterSpout.Wave.Speed", 1.2);
|
||||||
config.addDefault("Abilities.Water.WaterSpout.Wave.Cooldown", 2000);
|
config.addDefault("Abilities.Water.WaterSpout.Wave.Cooldown", 6000);
|
||||||
|
|
||||||
config.addDefault("Abilities.Water.WaterCombo.Enabled", true);
|
config.addDefault("Abilities.Water.WaterCombo.Enabled", true);
|
||||||
config.addDefault("Abilities.Water.WaterCombo.IceWave.Damage", 3);
|
config.addDefault("Abilities.Water.WaterCombo.IceWave.Damage", 3);
|
||||||
|
@ -845,6 +845,9 @@ public class ConfigManager {
|
||||||
config.addDefault("Abilities.Chi.Passive.Jump", 2);
|
config.addDefault("Abilities.Chi.Passive.Jump", 2);
|
||||||
config.addDefault("Abilities.Chi.Passive.BlockChi.Duration", 2500);
|
config.addDefault("Abilities.Chi.Passive.BlockChi.Duration", 2500);
|
||||||
config.addDefault("Abilities.Chi.Passive.DodgeChange", 25);
|
config.addDefault("Abilities.Chi.Passive.DodgeChange", 25);
|
||||||
|
|
||||||
|
config.addDefault("Abilities.Chi.ChiCombo.ParalyzeDuration", 10000);
|
||||||
|
config.addDefault("Abilities.Chi.ChiCombo.Cooldown", 20000);
|
||||||
|
|
||||||
config.addDefault("Abilities.Chi.AcrobatStance.Enabled", true);
|
config.addDefault("Abilities.Chi.AcrobatStance.Enabled", true);
|
||||||
config.addDefault("Abilities.Chi.AcrobatStance.Description", "AcrobatStance gives a Chiblocker a higher probability of blocking a Bender's Chi while granting them a Speed and Jump Boost. It also increases the rate at which the hunger bar depletes. To use, simply left click. Left clicking again will de-activate the stance.");
|
config.addDefault("Abilities.Chi.AcrobatStance.Description", "AcrobatStance gives a Chiblocker a higher probability of blocking a Bender's Chi while granting them a Speed and Jump Boost. It also increases the rate at which the hunger bar depletes. To use, simply left click. Left clicking again will de-activate the stance.");
|
||||||
|
@ -889,9 +892,6 @@ public class ConfigManager {
|
||||||
config.addDefault("Abilities.Chi.SwiftKick.Damage", 4);
|
config.addDefault("Abilities.Chi.SwiftKick.Damage", 4);
|
||||||
config.addDefault("Abilities.Chi.SwiftKick.ChiBlockChance", 30);
|
config.addDefault("Abilities.Chi.SwiftKick.ChiBlockChance", 30);
|
||||||
|
|
||||||
config.addDefault("Abilities.Chi.ChiCombo.ParalyzeDuration", 10000);
|
|
||||||
config.addDefault("Abilities.Chi.ChiCombo.Cooldown", 20000);
|
|
||||||
|
|
||||||
config.addDefault("Storage.engine", "sqlite");
|
config.addDefault("Storage.engine", "sqlite");
|
||||||
|
|
||||||
config.addDefault("Storage.MySQL.host", "localhost");
|
config.addDefault("Storage.MySQL.host", "localhost");
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class WaterWave {
|
||||||
private ArrayList<BukkitRunnable> tasks = new ArrayList<BukkitRunnable>();
|
private ArrayList<BukkitRunnable> tasks = new ArrayList<BukkitRunnable>();
|
||||||
|
|
||||||
public WaterWave(Player player, AbilityType type) {
|
public WaterWave(Player player, AbilityType type) {
|
||||||
if (!ENABLED || GeneralMethods.getBendingPlayer(player.getName()).isOnCooldown("WaterSpout"))
|
if (!ENABLED || GeneralMethods.getBendingPlayer(player.getName()).isOnCooldown("WaterWave"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.player = player;
|
this.player = player;
|
||||||
|
@ -305,7 +305,7 @@ public class WaterWave {
|
||||||
|
|
||||||
public void remove() {
|
public void remove() {
|
||||||
instances.remove(this);
|
instances.remove(this);
|
||||||
GeneralMethods.getBendingPlayer(player.getName()).addCooldown("WaterSpout", cooldown);
|
GeneralMethods.getBendingPlayer(player.getName()).addCooldown("WaterWave", cooldown);
|
||||||
revertBlocks();
|
revertBlocks();
|
||||||
for (BukkitRunnable task : tasks)
|
for (BukkitRunnable task : tasks)
|
||||||
task.cancel();
|
task.cancel();
|
||||||
|
|
|
@ -307,6 +307,7 @@ Abilities:
|
||||||
ChargeTime: 1000
|
ChargeTime: 1000
|
||||||
FlightTime: 2000
|
FlightTime: 2000
|
||||||
Speed: 1.2
|
Speed: 1.2
|
||||||
|
Cooldown: 6000
|
||||||
WaterCombo:
|
WaterCombo:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
IceWave:
|
IceWave:
|
||||||
|
@ -542,12 +543,14 @@ Abilities:
|
||||||
Damage: 2
|
Damage: 2
|
||||||
Cooldown: 1500
|
Cooldown: 1500
|
||||||
Dissipate: false
|
Dissipate: false
|
||||||
|
FireTicks: 6
|
||||||
Charged:
|
Charged:
|
||||||
ChargeTime: 2000
|
ChargeTime: 2000
|
||||||
Damage: 4
|
Damage: 4
|
||||||
DamageRadius: 6
|
DamageRadius: 6
|
||||||
Power: 1
|
Power: 1
|
||||||
Range: 20
|
Range: 20
|
||||||
|
FireTicks: 6
|
||||||
FireBurst:
|
FireBurst:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Description: "FireBurst is a very powerful firebending ability. To use, press and hold sneak to charge your burst. Once charged, you can either release sneak to launch a cone-shaped burst of flames in front of you, or click to release the burst in a sphere around you."
|
Description: "FireBurst is a very powerful firebending ability. To use, press and hold sneak to charge your burst. Once charged, you can either release sneak to launch a cone-shaped burst of flames in front of you, or click to release the burst in a sphere around you."
|
||||||
|
@ -567,6 +570,7 @@ Abilities:
|
||||||
Radius: 3
|
Radius: 3
|
||||||
DiscRadius: 1.5
|
DiscRadius: 1.5
|
||||||
Duration: 1000
|
Duration: 1000
|
||||||
|
FireTicks: 6
|
||||||
HeatControl:
|
HeatControl:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Description: "While this ability is selected, the firebender becomes impervious to fire damage and cannot be ignited. If the user left-clicks with this ability, the targeted area will be extinguished, although it will leave any creature burning engulfed in flames. This ability can also cool lava. If this ability is used while targeting ice or snow, it will instead melt blocks in that area. Finally, sneaking with this ability will cook any food in your hand."
|
Description: "While this ability is selected, the firebender becomes impervious to fire damage and cannot be ignited. If the user left-clicks with this ability, the targeted area will be extinguished, although it will leave any creature burning engulfed in flames. This ability can also cool lava. If this ability is used while targeting ice or snow, it will instead melt blocks in that area. Finally, sneaking with this ability will cook any food in your hand."
|
||||||
|
@ -609,6 +613,7 @@ Abilities:
|
||||||
Damage: 2
|
Damage: 2
|
||||||
Cooldown: 7500
|
Cooldown: 7500
|
||||||
Interval: 500
|
Interval: 500
|
||||||
|
FireTicks: 3
|
||||||
FireCombo:
|
FireCombo:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
FireKick:
|
FireKick:
|
||||||
|
@ -625,13 +630,16 @@ Abilities:
|
||||||
Damage: 4.0
|
Damage: 4.0
|
||||||
Speed: 0.55
|
Speed: 0.55
|
||||||
Cooldown: 200
|
Cooldown: 200
|
||||||
|
FireTicks: 2.5
|
||||||
JetBlast:
|
JetBlast:
|
||||||
Speed: 1.2
|
Speed: 1.2
|
||||||
Cooldown: 6000
|
Cooldown: 6000
|
||||||
|
FireTicks: 2.5
|
||||||
JetBlaze:
|
JetBlaze:
|
||||||
Speed: 1.1
|
Speed: 1.1
|
||||||
Damage: 3
|
Damage: 3
|
||||||
Cooldown: 6000
|
Cooldown: 6000
|
||||||
|
FireTicks: 2.5
|
||||||
Chi:
|
Chi:
|
||||||
Passive:
|
Passive:
|
||||||
FallReductionFactor: 0.5
|
FallReductionFactor: 0.5
|
||||||
|
@ -640,6 +648,9 @@ Abilities:
|
||||||
BlockChi:
|
BlockChi:
|
||||||
Duration: 2500
|
Duration: 2500
|
||||||
DodgeChance: 25
|
DodgeChance: 25
|
||||||
|
ChiCombo:
|
||||||
|
ParalyzeDuration: 10000
|
||||||
|
Cooldown: 20000
|
||||||
AcrobatStance:
|
AcrobatStance:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Description: "AcrobatStance gives a Chiblocker a higher probability of blocking a Bender's Chi while granting them a Speed and Jump boost. It also increases the rate at which the hunger bar depletes. To use, simply left click. Left clicking again will de-activate the stance."
|
Description: "AcrobatStance gives a Chiblocker a higher probability of blocking a Bender's Chi while granting them a Speed and Jump boost. It also increases the rate at which the hunger bar depletes. To use, simply left click. Left clicking again will de-activate the stance."
|
||||||
|
|
Loading…
Reference in a new issue