Thread: Multi use macro
View Single Post
12-06-05, 04:32 PM   #5
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
SpellCanTargetUnit("target") will never be true immediately after a CastSpell/ByName.

SpellCanTargetUnit is only used while in spell targeting mode (cast a beneficial spell without a target or self cast), and never used for "target" since you can't get into spell targeting mode if your target can accept the spell.

Determintal spells (stuff you cast on hostiles, including Repentance) never, ever go into spell targeting mode. If the target is invalid then it says so and that's it.

For detrimental spells, since there is never a targeting mode and all the SpellCanTargetUnit, SpellTargetUnit, etc functions never apply, to do stuff differently depending on if the spell can cast, you'll want to make the check manually by a series of checks before casting.
  Reply With Quote