Bug Open

Damage mechanic bypasses OnDamaged aura conditions (damageCause/damageTag not respected)

#6331 opened by Unknown 1 year ago

Unknownreported this bug

damageCause and damageTag Conditions in OnDamaged Auras don't work with damage mechanic (though they seem to work fine on mobs with ~OnDamaged Trigger). For example, when I use /mm t cast withercloak followed by /mm t cast WitherDamage, the damage isn't canceled and the run the onHit. However, if I use /minecraft:damage @p 100 minecraft:wither, the WitherCloak aura cancels the damage properly. So I think MythicMobs’ Damage mechanic might be bugged

WitherDamageCommand:  
  Skills:
  - command{c="minecraft:damage <target.name> 100 minecraft:wither"} @Self

WitherDamage:  
  Skills:
  - damage{a="100";dc=WITHER} @Self      
  
Withercloak:  
  Skills:
  - onDamaged{auraName=Withercloak;d=100;cE=true;oH=Withercloak-blocked} @Self
Withercloak-blocked:
  Conditions:        
  - damagecause{cause=WITHER} true
  Skills:
  - message{m="wither damage canceled"} @Self

Ps. I'm pretty sure I used them correctly, since the aura work with minecraft:damage command. I tried TriggerConditions too, it also doesn't care about mythicmobs damage's cause.

Unknowncommented

The damage mechanic has a triggerSkills attribute that defaults to false. Adding tiggerSkills=true to the damage mechanic here in WitherDamage should allow it to trigger onDamaged events.

Reach out in our Discord support channels for troubleshooting assistance or to confirm misbehaviors like this for the quickest responses!

Unknowncommented

Hello, thanks for the tips! I'm just more used to github. Now I tried added the triggerSkills=true either, and it doesn't work too.

This might help or not, but back when I tested it with premium and debugging, seems that the <skill.var.damage-type> will always return SKILL no matter if I change the damagecause to something else.

please allow me to reopen it for further investigation!

I try reproduce these skills in clean environment and it's happening there too https://mclo.gs/AkmEfta

Sign in to join the discussion.