Fixed the instant refresh bug. Fixed blockListener checking skills.

This commit is contained in:
nossr50
2012-02-10 09:44:17 -08:00
parent 5e8a8aac53
commit f87f7f6feb
6 changed files with 12 additions and 13 deletions

View File

@ -95,7 +95,7 @@ public class Skills
PP.setSerratedStrikesInformed(true);
player.sendMessage(mcLocale.getString("Skills.YourSerratedStrikes"));
}
if(!PP.getBerserkInformed() && curTime - (PP.getSkillDATS(AbilityType.BERSERK)*1000) >= (LoadProperties.berserkCooldown * 1000)){
if(!PP.getBerserkInformed() && (curTime - (PP.getSkillDATS(AbilityType.BERSERK)*1000)) >= (LoadProperties.berserkCooldown * 1000)){
PP.setBerserkInformed(true);
player.sendMessage(mcLocale.getString("Skills.YourBerserk"));
}
@ -126,9 +126,7 @@ public class Skills
PP.setHoePreparationMode(true);
}
}
public static void monitorSkills(Player player, PlayerProfile PP) {
monitorSkills(player, PP, System.currentTimeMillis());
}
public static void monitorSkills(Player player, PlayerProfile PP, long curTime){
if(PP.getHoePreparationMode() && curTime - (PP.getHoePreparationATS()*1000) >= 4000){
PP.setHoePreparationMode(false);

View File

@ -38,9 +38,12 @@ public class Unarmed {
{
PP.setFistsPreparationMode(false);
}
int ticks = 2;
int x = PP.getSkillLevel(SkillType.UNARMED);
while(x >= 50){
while(x >= 50)
{
x-=50;
ticks++;
}