or just in one line...

Tries to attack the focus' target(if any) but otherwise it will just fire at your existing target:
/cast [target=focustarget,exists,mod:alt,harm,nodead] [exists,mod:alt,harm,nodead] Holy Fire