Okay thanks. works now.
As you may notice im completly new to coding
Is this the right approach to add a simple fireblast every time it is available and the target is in range?
Code:
if UnitExists("target") then
if CheckInteractDistance("target", 2) and PQR_SpellAvailable(GetSpellInfo(122)) then CastSpellByName(GetSpellInfo(122)) end
if IsSpellInRange(GetSpellInfo(2136), "target") and PQR_SpellAvailable(GetSpellInfo(2136)) then CastSpellByName(GetSpellInfo(2136), "target") end
if IsSpellInRange(GetSpellInfo(116), "target") == 1 and PQR_SpellAvailable(GetSpellInfo(2136)) == nil and not CheckInteractDistance("target", 2) then CastSpellByName(GetSpellInfo(116), "target") end
end
I'm kind off confused with the PQR refernce.
It says that SpellAvailable returns true when its available and false when its not available
available is " == 1 "
false is " == nil "
right?