Only activate bleed if the target survives the initial strike

This commit is contained in:
nossr50 2019-01-23 16:21:34 -08:00
parent 4031674626
commit 96b46d31cf
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,6 @@ public class NotificationManager {
*/
public static void sendPlayerInformation(Player player, NotificationType notificationType, String key)
{
ChatMessageType destination = AdvancedConfig.getInstance().doesNotificationUseActionBar(notificationType) ? ChatMessageType.ACTION_BAR : ChatMessageType.SYSTEM;
TextComponent message = TextComponentFactory.getNotificationTextComponentFromLocale(key, notificationType);

View File

@ -54,8 +54,11 @@ public final class CombatUtils {
mcMMOPlayer.checkAbilityActivation(PrimarySkillType.SWORDS);
}
if (swordsManager.canUseRupture()) {
swordsManager.ruptureCheck(target);
if(target.getHealth() - event.getFinalDamage() >= 1)
{
if (swordsManager.canUseRupture()) {
swordsManager.ruptureCheck(target);
}
}
if (swordsManager.canUseSerratedStrike()) {