Abilities that apply physical damage immunity or ethereal effects fail to apply their protection when the unit is affected by Diabolic Edict.
Leshrac (and Rubick/Morphling) can be damaged by physical damage even while ethereal or immune to physical damage, if they are affected by Diabolic Edict.

This bug affects all physical damage immunity abilities (Cold Embrace & Guardian Angel) and all ethereal effects (Ghost Scepter, Ethereal Blade, Decrepify, Ghost Shroud).
Abilities that only apply attack immunity (Shadow Realm) are not affected by this. Ethereal effects also still provide attack immunity, but spell-based physical damage pierces the ethereal state.

This bug is caused by the hidden "Edict grants Ethereal" talent that exists in the game files ("special_bonus_unique_leshrac_4"), but is currently unassigned.
If the talent is enabled & chosen, Diabolic Edict’s ethereal state protects against physical damage.



Reproduction:

- Use Diabolic Edict as Leshrac
- Apply an ethereal effect or physical damage immunity to Leshrac
- An enemy unit uses a physical damage ability on Leshrac


Current behaviour: Physical damage pierces ethereal and physical immunity effects, if the unit is affected by Diabolic Edict.

Intended behaviour: Physical damage shouldn’t pierce ethereal and physical immunity effects, even if the unit is affected by Diabolic Edict.



Bug showcase (with Edict):

Comparison (without Edict):

Comparison (with & without talent):