Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
|This function is PROTECTED, and can only be called from Blizzard code.
This page is about the API SpellTargetUnit.
This specifies the target that the spell should use without needing you to click the target or make it your main target.
- Unit ID : unit you wish to cast the spell on.
local ue = UnitExists("target"); -- We'll need to know if we have a target at the moment. ClearTarget(); -- Get rid of it, either way CastSpellByName("Power Word: Fortitude"); -- This gets us into cursor casting mode. SpellTargetUnit("raid1"); -- This casts PW:F on raid1 (if you are in a raid). if (ue) then TargetLastTarget(); -- Return target if it existed before we clared it. end