Fixed bug which prevented players from leveling up

Any affected players will get their levels back when they gain some
more XP in that particular skill.
This commit is contained in:
TfT_02 2013-10-19 14:08:04 +02:00
parent 100f2c7e56
commit 810c74dc2a

View File

@ -119,7 +119,7 @@ public class EventUtils {
profile.setSkillXpLevel(skill, profile.getSkillXpLevelRaw(skill) + event.getRawXpGained()); profile.setSkillXpLevel(skill, profile.getSkillXpLevelRaw(skill) + event.getRawXpGained());
} }
return isCancelled; return !isCancelled;
} }
public static McMMOPlayerAbilityDeactivateEvent callAbilityDeactivateEvent(Player player, AbilityType ability) { public static McMMOPlayerAbilityDeactivateEvent callAbilityDeactivateEvent(Player player, AbilityType ability) {