Hi guys
So i just finished my wa string for warning me when my current spellcast drops me below a certain mana percentage, but after I completed it im often getting the warning about a lot of errors and the option to turn of my addons.
So I wanted to hear if there is anything in my lua code the issue or if anyone can pinpoint the root of my problems
Code:
function()
local name, rank, icon, count = UnitDebuff("Player", "Arcane charge", nil, "PLAYER");
local basecost = 3200;
local cost = basecost * count;
local spell = UnitCastingInfo("Player")
local maxpower = UnitPowerMax("Player" , Mana);
local mana = UnitMana("Player");
local next = (mana-cost) / maxpower *100;
local ap = UnitAura("player", "Arcane Power")
if next < 92 and spell == "Arcane Blast" and count >= 3 and ap~= "Arcane Power" then
return true
else
return false
end
end