spellisspell

Returns if the two spells are the same.

spellisspell(spellA, spellB) : boolean

Example

if spellisspell(lasspell, Autoshot) then
return cast(Rebuke, 'target')
end

Note

This function checks the spell name and rank, not IDs.