mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +01:00
Use notification settings for critical hits Fixes #2498
This commit is contained in:
parent
342c37a02c
commit
4f1f10333f
@ -74,10 +74,16 @@ public class AxesManager extends SkillManager {
|
|||||||
|
|
||||||
Player player = getPlayer();
|
Player player = getPlayer();
|
||||||
|
|
||||||
|
if (mcMMOPlayer.useChatNotifications()) {
|
||||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.CriticalHit"));
|
player.sendMessage(LocaleLoader.getString("Axes.Combat.CriticalHit"));
|
||||||
|
}
|
||||||
|
|
||||||
if (target instanceof Player) {
|
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;
|
damage = (damage * Axes.criticalHitPVPModifier) - damage;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user