Hello,
i try to create a fight class for dk on 3.3.5a and i have problems with the rune-related conditions. Rune X Ready Count and Rune Ready Slot X (i assume the Slot nr from GetRuneType?) doesn't work at al, Rune Power works though. I tried to solve it with a Lua-Condition with following code i've found on the internet:
RuneCheck = nil
function RuneCheck()
local FrostRune = 0
local UnholyRune = 0
local BloodRune = 0
local DeathRune = 0
for i=1, 6 do
if GetRuneType(i) == 1 and select(1,GetRuneCooldown(i)) + select(2,GetRuneCooldown(i)) - GetTime() < 1
then BloodRune + 1 end
if GetRuneType(i) == 2 and select(1,GetRuneCooldown(i)) + select(2,GetRuneCooldown(i)) - GetTime() < 1
then UnholyRune + 1 end
if GetRuneType(i) == 3 and select(1,GetRuneCooldown(i)) + select(2,GetRuneCooldown(i)) - GetTime() < 1
then FrostRune + 1 end
if GetRuneType(i) == 4 and select(1,GetRuneCooldown(i)) + select(2,GetRuneCooldown(i)) - GetTime() < 1
then DeathRune + 1 end
end
return BloodRune, UnholyRune, FrostRune, DeathRune
end
local RuneCheck = RuneCheck
-- Obliterate if both Unholy Runes are ready or ready within 1 second
if select(2,RuneCheck()) > 1 then return true end
i have some coding skills but not in lua, what is the return value var in this case?
Regards