pqr uses/used castspellbyid in the spellid box when you create the ability. with mop they started to share ids(morphed ids) and thats where byid breaks on pqr, if you use the root spellid it would work but for some profiles it locked up till you move your toon around. I just created my own cast function that makes it easy to input unitid and spellid that all i need to do is add before a return true.
just a note:
don't put a return true in the cast function as you'll run into casting 2 times.
Code:
_shorthand = nil
function _shorthand()
_Chat = PQR_WriteToChat
_UB = UnitBuffID
_UDB = UnitDebuffID
_Mod = Nova_Mod
_SA = PQR_SpellAvailable
_PS = IsPlayerSpell
_SIR = IsSpellInRange
_GI = GetSpellInfo
_UE = UnitExists
_CSN = CastSpellByName
end
_shorthand()
_checkSpell = nil
function _checkSpell(sid, tar)
if _UE(tar) then
if _PS(sid) and _SA(sid) then
if tar ~= nil then
if _SIR(_GI(78), tar) == 1 then return true else return false end
--atm its set to warriors heroic strike, just change the number to a common melee/ranged spell (ie: arcane shot for hunters)
elseif tar == nil then
return true
end
else
return false
end
end
end
_Cast = nil
function _Cast(sid, tar)
_CSN(_GI(sid), tar)
end