Weakaura Custom Trigger Written During Legion, Erroneous in BFA

As previously indicated, UnitDebuff has the wrong arguments

Don’t use UnitDebuff
Use AuraUtil.FindAuraByName
like this,
and not (AuraUtil.FindAuraByName(“Purge the Wicked”,“target”)) then