fix Roll interactions with CMI fixes #5151

This commit is contained in:
nossr50
2025-03-08 11:34:29 -08:00
parent 25c89c5bd3
commit ef2aa57be3
2 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,8 @@ public class Roll extends AcrobaticsSubSkill {
final EntityDamageEvent entityDamageEvent = (EntityDamageEvent) event;
//Make sure a real player was damaged in this event
if (!EventUtils.isRealPlayerDamaged(entityDamageEvent))
if (!EventUtils.isRealPlayerDamaged(entityDamageEvent)
|| !entityDamageEvent.isApplicable(EntityDamageEvent.DamageModifier.MAGIC))
return false;
if (entityDamageEvent.getCause() == EntityDamageEvent.DamageCause.FALL) {