Well the 2.0 update has been out for a few days now and what joy has spread around azeroth at the news :-(! OK it does include allot of those upcoming BC features, but it has also stiffed every serious player of the game, by invalidating all addons, worse theyve protected certain lua commands
here is, as best as i can establish a list of the now protected lua commands. theyve also revised and renamed quite a few other commands not listed here.
PROTECTED CastSpell(spellID, "bookType")
PROTECTED CastSpellByName("name"[, onSelf])
PROTECTED ActionButtonUp(id)
PROTECTED UseAction(slot[, checkCursor[, onSelf]])
PROTECTED StartDuel("name")
PROTECTED PetAggressiveMode()
PROTECTED AssistUnit("unit")
PROTECTED AttackTarget()
PROTECTED ClearTarget()
PROTECTED TargetLastEnemy()
PROTECTED TargetLastTarget()
PROTECTED TargetNearestEnemy([reverseFlag])
PROTECTED TargetNearestFriend()
PROTECTED TargetNearestPartyMember()
PROTECTED TargetNearestRaidMember()
PROTECTED TargetUnit("unit")
PROTECTED TargetUnit("unit")
many thanks to the last poster who helped clarify in my mind exactly when /cast can be used in an external addon, it can be used in an external addon but not with a conditional statement such as IF as mentioned below, which was possible previously.
tnx
Edited, Dec 14th 2006 5:36pm by ancientscream