CancelEvent{sync=true} executed ~onAttack negates all Damage ticks on Modeled / Disguised MythicMobs.
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.