Cooldown for MetalClips

Made a few changes, but ultimately not working.
This commit is contained in:
Brendan Wilson 2014-11-21 08:04:15 -05:00
parent a2e831be12
commit f42c55dd0f
2 changed files with 5 additions and 3 deletions

View file

@ -458,11 +458,11 @@ public class ConfigManager {
config.addDefault("Abilities.Earth.LavaSurge.SourceCanBeEarth", true);
config.addDefault("Abilities.Earth.MetalClips.Enabled", true);
config.addDefault("Abilities.Earth.MetalClips.Description", "Shoot multiple metal clips at your enemy to slowly encase them in metal, allowing you to control their movements. This ability only works on Zombies, Skeletons, and Players. You need iron in your inventory to use this ability.");
config.addDefault("Abilities.Earth.MetalClips.Description", "Shoot multiple metal clips at your enemy to slowly encase them in metal, giving you full control over their movements. This ability only works on Zombies, Skeletons, and Players. You need iron in your inventory to use this ability.");
config.addDefault("Abilities.Earth.MetalClips.Damage", 2);
config.addDefault("Abilities.Earth.MetalClips.DamageInterval", 500);
config.addDefault("Abilities.Earth.MetalClips.MagnetRange", 20);
config.addDefault("Abilities.Earth.MetalClips.Cooldown", 600);
config.addDefault("Abilities.Earth.MetalClips.Cooldown", 1000);
config.addDefault("Abilities.Earth.MetalClips.Duration", 10000);

View file

@ -65,7 +65,6 @@ public class MetalClips
magnet();
instances.put(player, this);
Methods.getBendingPlayer(player.getName()).addCooldown("MetalClips", cooldown);
}
public boolean isEligible()
@ -102,6 +101,9 @@ public class MetalClips
{
ItemStack is = new ItemStack(Material.IRON_INGOT, 1);
if(Methods.getBendingPlayer(player.getName()).isOnCooldown("MetalClips"))
return;
if(!player.getInventory().containsAtLeast(is, 1))
{
//ProjectKorra.log.info("Player doesn't have enough ingots!");