mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
test
This commit is contained in:
@@ -92,7 +92,7 @@ function GetManaRegen()
|
|||||||
local base = UnitStat("player", 5)
|
local base = UnitStat("player", 5)
|
||||||
local currMana = UnitMana("player")
|
local currMana = UnitMana("player")
|
||||||
local maxMana = UnitManaMax("player")
|
local maxMana = UnitManaMax("player")
|
||||||
local regen = ceil(base / 5) + 15
|
local regen = ceil(base / 5) - 15
|
||||||
local castingRegen = 0
|
local castingRegen = 0
|
||||||
|
|
||||||
local _, _, _, _, rank = GetTalentInfo(3, 6)
|
local _, _, _, _, rank = GetTalentInfo(3, 6)
|
||||||
@@ -141,7 +141,7 @@ frame:SetScript("OnEvent", function()
|
|||||||
if event == "PLAYER_LOGIN" then
|
if event == "PLAYER_LOGIN" then
|
||||||
IsLoggedIn = true
|
IsLoggedIn = true
|
||||||
end
|
end
|
||||||
print(event, arg1)
|
|
||||||
this[event](this, arg1)
|
this[event](this, arg1)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -296,7 +296,6 @@ end
|
|||||||
|
|
||||||
function frame:UpdateMana()
|
function frame:UpdateMana()
|
||||||
local regen, castingRegen = GetManaRegen()
|
local regen, castingRegen = GetManaRegen()
|
||||||
print(regen, castingRegen)
|
|
||||||
|
|
||||||
if fiveSecondRule then
|
if fiveSecondRule then
|
||||||
currMana = currMana + floor(castingRegen * 2 + 0.5)
|
currMana = currMana + floor(castingRegen * 2 + 0.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user