- Fixed wasted shield subtracting the total healing of the spell. This wasn't affecting the healing done of the actor it self.
- Removed the debug button 'Hello World' from the plugin menu.
This commit is contained in:
+4
-3
@@ -1405,7 +1405,7 @@ ameHealer: Bombad
|
||||
if (not shieldname) then
|
||||
owner_serial, owner_name, owner_flags, owner_flags2, shieldid, shieldname, shieldtype, amount = spellid, spellname, spellschool, owner_serial, owner_name, owner_flags, owner_flags2, shieldid
|
||||
end
|
||||
|
||||
|
||||
if (ignored_shields [shieldid]) then
|
||||
return
|
||||
|
||||
@@ -1441,7 +1441,7 @@ ameHealer: Bombad
|
||||
end
|
||||
|
||||
function parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, amount, overhealing, absorbed, critical, is_shield)
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> early checks and fixes
|
||||
|
||||
@@ -2157,7 +2157,8 @@ ameHealer: Bombad
|
||||
escudo [alvo_name][spellid][who_name] = 0
|
||||
|
||||
if (overheal and overheal > 0) then
|
||||
return parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, nil, 0, _math_ceil (overheal), 0, 0, nil, true)
|
||||
--> removing the nil at the end before true for is_shield, I have no documentation change about it, not sure the reason why it was addded
|
||||
return parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, nil, 0, _math_ceil (overheal), 0, 0, true) --0, 0, nil, true
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
@@ -610,17 +610,6 @@
|
||||
--> add it to menu table
|
||||
tinsert (f.MenuButtons, newButton)
|
||||
|
||||
if (#f.MenuButtons == 1) then
|
||||
local teste = _detalhes.gump:NewButton (f, _, "$parentOpenFeedbackButton", nil, 160, 20, _detalhes.OpenFeedbackWindow, nil, nil, nil, "Hellow Woirld", 1)
|
||||
teste:SetPoint ("top", menuBackground, "top", 0, f.MenuY + ( (1-1) * -f.MenuButtonHeight ) - 1 - 350)
|
||||
teste:SetTemplate (_detalhes.gump:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
teste.textalign = "left"
|
||||
teste.textcolor = "white"
|
||||
teste.textsize = 10
|
||||
teste:SetIcon ("Interface\\FriendsFrame\\UI-Toast-BroadcastIcon", nil, nil, nil, {4/32, 27/32, 5/32, 25/32}, {1, 1, 1, 0.8}, 4, 2)
|
||||
|
||||
end
|
||||
|
||||
return newButton
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user