resolveSpellID

Returns the correct SPELL ID for a given spell.

resolveSpellID([spellID]) : integer
1. SpellID from the class spellbooks

Example

local lowlevelFrostbolt = resolveSpellID(Frostbolt)
if resolveSpellID(lowlevelFrostbolt) then
return cast(lowlevelFrostbolt, 'target')
end

Note

This should really not be used in a rotation, but its there if needed. This will play a bigger roll for Classic and TBC. This check is already done with

castable(Frostbolt, 'target')