mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
Move acrobatics damage reduction inside success check
This commit is contained in:
parent
d93840b9d1
commit
76a922d4bd
@ -77,6 +77,8 @@ public class Roll extends AcrobaticsSubSkill {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Roll happened, reduce damage, send messages and XP
|
||||||
|
if (rollResult.isRollSuccess()) {
|
||||||
// Clear out the damage from falling so that way our modified damage doesn't get re-reduced by protection/feather falling
|
// Clear out the damage from falling so that way our modified damage doesn't get re-reduced by protection/feather falling
|
||||||
entityDamageEvent.setDamage(0);
|
entityDamageEvent.setDamage(0);
|
||||||
// Send the damage is MAGIC so that it cuts through all resistances
|
// Send the damage is MAGIC so that it cuts through all resistances
|
||||||
@ -87,8 +89,6 @@ public class Roll extends AcrobaticsSubSkill {
|
|||||||
entityDamageEvent.setCancelled(true);
|
entityDamageEvent.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Roll happened, send messages and XP
|
|
||||||
if (rollResult.isRollSuccess()) {
|
|
||||||
final String key
|
final String key
|
||||||
= rollResult.isGraceful() ? GRACEFUL_ROLL_ACTIVATED_LOCALE_STR_KEY : ROLL_ACTIVATED_LOCALE_KEY;
|
= rollResult.isGraceful() ? GRACEFUL_ROLL_ACTIVATED_LOCALE_STR_KEY : ROLL_ACTIVATED_LOCALE_KEY;
|
||||||
sendPlayerInformation(mmoPlayer.getPlayer(), NotificationType.SUBSKILL_MESSAGE, key);
|
sendPlayerInformation(mmoPlayer.getPlayer(), NotificationType.SUBSKILL_MESSAGE, key);
|
||||||
|
Loading…
Reference in New Issue
Block a user