sry my bad english. idk this is minor bug or just me.
my demonhunter sometimes stops action to try using punishment.
i changed (Player.PrimaryResource <= 29 && hasPunishment))
to
(Player.PrimaryResource <= 29 && hasPunishment && Player.SecondaryResource >= 25))