if ${Spell[Hammer of Wrath](exists)}&&${Unit[${AttackGUID}].PctHPs}<20&&!${Unit[${AttackGUID}].Dead} { if !${Spell[Hammer of Wrath].Cooldown} { call CastSpell "Hammer of Wrath" ${AttackGUID}