Bug Verified

Suicide mechanic provides unexpected trigger for onDeath triggers

#4967 opened by Unknown 2 years ago

Unknownreported this bug

Summary

The suicide mechanic, once used, provides any onDeath trigger with unexpected entities

Steps to reproduce

tnt1:
 Type: husk
 Skills:
 - suicide ~onattack
 - cmd{c=say <trigger.name>} ~ondeath

Current behavior

The above configuration outputs in chat the name of the player that was attacked by the mob

Intended correct behavior

The trigger of the onDeath event is expected to be the mob that casted the suicide mechanic, and not the player that was hit

Sign in to join the discussion.