Bug Closed · Resolved

CancelEvent{sync=true} executed ~onAttack negates all Damage ticks on Modeled / Disguised MythicMobs.

#5257 opened by Unknown 2 years ago

Unknownreported this bug

Tested with this item:

test-item3:
  Id: IRON_SWORD
  Display: 'Damage testing'
  Lore: "testing cancelevent ~onAttack damage."
  Skills:
  - skill{s=[ 
    - cancelevent{sync=true} @self
    - damage{a=100;pi=true}
    - e:p{p=reddust;a=12;hs=0.5;vs=0.5;yo=1}
    ]} @trigger ~onAttack

When an unmodelled/undisguised mythicmob is attacked, the mechanic executes as expected, canceling the hit and dealing 100 damage from the mechanic.

However, when a modeled/disguised mob is attacked, the initial hit and the mechanic damage are canceled. Only the mechanic damage occurring in the same tick as the attack is canceled, the particle mechanic still goes through.

This should be fixed as items that use ~onAttack skills to deal custom amounts of damage do not work on meg mobs and libsdisguises mobs.

Demonstration here: https://www.youtube.com/watch?v=DyER9JS4yS0

On latest MM, Crucible, Meg, Libsdisguises, 1.20.4.

Unknowncommented

Closing due to inactivity and major version changes since posting. If this issue is still present, re-open this issue with a modern-version server log, configs used to test and steps to reproduce.

Sign in to join the discussion.