Use notification settings for critical hits Fixes #2498

This commit is contained in:
t00thpick1 2015-03-18 16:09:01 -04:00
parent 342c37a02c
commit 4f1f10333f

View File

@ -74,10 +74,16 @@ public class AxesManager extends SkillManager {
Player player = getPlayer();
player.sendMessage(LocaleLoader.getString("Axes.Combat.CriticalHit"));
if (mcMMOPlayer.useChatNotifications()) {
player.sendMessage(LocaleLoader.getString("Axes.Combat.CriticalHit"));
}
if (target instanceof Player) {
((Player) target).sendMessage(LocaleLoader.getString("Axes.Combat.CritStruck"));
Player defender = (Player) target;
if (UserManager.getPlayer(defender).useChatNotifications()) {
defender.sendMessage(LocaleLoader.getString("Axes.Combat.CritStruck"));
}
damage = (damage * Axes.criticalHitPVPModifier) - damage;
}