Cooldowns for Blast Mining are now fully functional (BUILD IS SAFE AGAIN)

This commit is contained in:
nossr50
2012-03-01 13:01:41 -08:00
parent 8254a8ab0f
commit f5fc941916
7 changed files with 44 additions and 17 deletions

View File

@ -55,10 +55,8 @@ public class Skills
return (int) (((deactivatedTimeStamp + (cooldown * 1000)) - System.currentTimeMillis())/1000);
}
public static void watchCooldown(Player player, PlayerProfile PP, long curTime, SkillType skill)
public static void watchCooldown(Player player, PlayerProfile PP, long curTime, AbilityType ability)
{
AbilityType ability = skill.getAbility();
if(!ability.getInformed(PP) && curTime - (PP.getSkillDATS(ability) * 1000) >= (ability.getCooldown() * 1000))
{
ability.setInformed(PP, true);