Originally Posted by
Paszo
I need assistance! I'm a fellow warrior looking for someone to fix this profile I use. I'm trying to get it to use Stormbolt when Colossus Smash debuff is up. If anyone knows how to do that please PM me!

Code:
local CS = select(7,UnitDebuffID("target",86346,"player"))
if not IsPlayerSpell(107570) then return false end -- We don't have Storm Bolt talented.
if not CS then return false end -- Our target doesn't have Colossus Smash.
if PQR_SpellAvailable(107570) then -- If Storm Bolt is available.
CastSpellByName(GetSpellInfo(107570),"target") return true
end
Should work as you want it.