Fixed bug where disabling hardcore mode for specific skills didn't work

Fixes #1661
This commit is contained in:
TfT_02 2013-12-03 22:15:23 +01:00
parent 48821a710f
commit 07cafd4866
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Version 1.4.08-dev
= Fixed bug where the Unbreaking enchantment was ignored when using "Super Breaker" or "Giga Drill Breaker"
= Fixed bug which prevented players from gaining Acrobatics XP when the setting 'Prevent_XP_After_Teleport' was set to false
= Fixed bug where cooldown donor perks were reducing more than expected
= Fixed bug where disabling hardcore mode for specific skills didn't work
! Updated localization files
! Changed AxesCritical to CriticalHit in config file
! Changed several secondary ability permissions(deprecated versions still exist)

View File

@ -22,6 +22,10 @@ public final class HardcoreManager {
int totalLevelsLost = 0;
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
if (!skillType.getHardcoreStatLossEnabled()) {
break;
}
int playerSkillLevel = playerProfile.getSkillLevel(skillType);
int playerSkillXpLevel = playerProfile.getSkillXpLevel(skillType);
@ -54,6 +58,10 @@ public final class HardcoreManager {
int totalLevelsStolen = 0;
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
if (!skillType.getHardcoreVampirismEnabled()) {
break;
}
int killerSkillLevel = killerProfile.getSkillLevel(skillType);
int victimSkillLevel = victimProfile.getSkillLevel(skillType);