yup looks likes someone forgot the target part :P

yeh could just use this

/cast [target=focustarget] Smite

yeh dont need nodead since yeh cant cast on dead targets and yeh dont need harm since yeh cant cast smite on friendly targets