Summary
As title said, ondamaged aura mechanic or even ~onDamaged trigger does not detect when damaged and the damage is caused by mechanic such as
- damage
- hit
Steps to reproduce MythicMobs version: 5.11.2-SNAPSHOT MythicCrucible version: 2.4.0-SNAPSHOT
in Items/item.yml
debug_rod:
Id: stick
Display: 'Debug Rod'
Options:
PreventStacking: true
Skills:
- ondamaged{ondamagedskill=damage;ticks=2} @EIR{radius=10} ~onTimer:1
- damage{triggerskills=true;forcesync=true} @trigger ~onAttack
- cancelEvent ~onAttack
in skills/skill.yml
damage:
Skills:
- damage{amount=100}
Current behavior
Without the - cancelEvent ~onAttack at the end:
When melee attacking mobs with the stick, they takes additional 100 damage from the mechanic, dealing 101 damage in total.
With the - cancelEvent ~onAttack at the end:
When melee attacking mobs with the stick, they takes only 1 damage from the damage mechanic, and nothing else happens, seemingly not triggering the "onDamaged trigger aura" of the mob.
Intended correct behavior
With the - cancelEvent ~onAttack at the end:
When melee attacking mobs with the stick, they first takes 1 damage from the damage mechanic, triggering the "onDamaged trigger aura" of the mob, the the mobs trigger the damage metaskill, dealing 100 damage to itself.
Suggestion: Add an option for the onDamaged trigger to enable whether to trigger the skill from "mechanic damage"