/L2Play
if L2:CheckDB() then |
if guidsource == UnitGUID("player") then |
spellid, spellname = ... |
local fooevent = minievent |
for k,v in ipairs(L2PlayDB[GetActiveTalentGroup()]) do |
if CastedSpell and step == k and spellname == v then |
if minievent == "SPELL_DAMAGE" or minievent == "SPELL_AURA_APPLIED" or minievent == "SPELL_AURA_REFRESH" then |
end |
CastedSpell = nil |
total = 0 |
if not L2:GetScript("OnUpdate") then L2:SetScript("OnUpdate", onUpdate) end |
local activeScript = L2:GetScript("OnUpdate") |
if not activeScript then L2:SetScript("OnUpdate", onUpdate) end |
elseif minievent == "SPELL_MISSED" then |
_G[name..step.."status"]:SetTexture(READY_CHECK_NOT_READY_TEXTURE) |
_G[name..step.."Cooldown"]:SetCooldown(GetTime(),0) |
CastedSpell = nil |
total = 0 |
if not L2:GetScript("OnUpdate") then L2:SetScript("OnUpdate", onUpdate) end |
local activeScript = L2:GetScript("OnUpdate") |
if not activeScript then L2:SetScript("OnUpdate", onUpdate) end |
end |
end |
end |
_G[name..k.."status"]:SetTexture(READY_CHECK_WAITING_TEXTURE) |
total = 0 |
CastedSpell = true |
if not L2:GetScript("OnUpdate") then L2:SetScript("OnUpdate", onUpdate) end |
local activeScript = L2:GetScript("OnUpdate") |
if not activeScript then L2:SetScript("OnUpdate", onUpdate) end |
end |
end |
end |