Fixed cast issue with Repair Mastery - fixes Issue #47

This commit is contained in:
gmcferrin 2012-01-26 21:57:17 -05:00
parent 80cc22efff
commit e1399427f0

View File

@ -469,9 +469,9 @@ public class Repair {
}
public static short repairCalculate(Player player, short durability, int ramt){
PlayerProfile PP = Users.getProfile(player);
float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500);
float bonus = (float)(PP.getSkillLevel(SkillType.REPAIR)) / 500;
bonus = (ramt * bonus);
ramt = ramt+=bonus;
ramt+=bonus;
if(checkPlayerProcRepair(player)){
ramt = (short) (ramt * 2);
}