If I use Rhyperior V's "Drill Run" attack against a Darkrai with "Darkness Guard" Ability and only one Darkness Energy card attached, does Darkrai take 20 less damage before discarding the Darkness Energy or is the energy card discarded before the damage is reduced?
If an attack discards energy from the Defending Pokemon, the damage reduction happens first and then apply any attack effects.
Source: Darkness Ablaze FAQ (2020-07-31), TPCi Rules Team (2020-08-13)

Relevant cards

Note: All applicable cards may not be listed below.
SWSH3_105
SWSH3_105