Fix leveling + Fix Roll

This commit is contained in:
nossr50 2019-06-14 12:00:47 -07:00
parent e7e28ec3cb
commit ffa35d0179
3 changed files with 2 additions and 5 deletions

View File

@ -24,7 +24,7 @@ public class ConfigAcrobatics {
return subSkills.getDodge();
}
public double getDamageTheshold() {
public double getRollDamageTheshold() {
return getRoll().getDamageTheshold();
}

View File

@ -202,7 +202,7 @@ public class Roll extends AcrobaticsSubSkill {
return gracefulRollCheck(player, mcMMOPlayer, damage, skillLevel);
}
double modifiedDamage = calculateModifiedRollDamage(damage, AdvancedConfig.getInstance().getRollDamageThreshold());
double modifiedDamage = calculateModifiedRollDamage(damage, mcMMO.getConfigManager().getConfigAcrobatics().getRollDamageTheshold());
if (!isFatal(player, modifiedDamage)
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.ACROBATICS_ROLL, player)) {

View File

@ -45,9 +45,6 @@ public class SelfListener implements Listener {
if (mcMMO.getScoreboardSettings().getScoreboardsEnabled())
ScoreboardManager.handleLevelUp(player, skill);
if (!MainConfig.getInstance().getLevelUpEffectsEnabled()) {
}
/*if ((event.getSkillLevel() % Config.getInstance().getLevelUpEffectsTier()) == 0) {
skill.celebrateLevelUp(player);
}*/