Our group seems to have trouble automating the Cleric's Turn Undead.
I tried implementing it myself but even though I can force the target to make a saving throw, it doesn't set the effect on the target on a failed save.
We can't find an example of an implementation of Turn Undead anywhere online which seems odd.
There's a screenshot attached. What are we doing wrong?
EDIT: D&D 5E