Fixed customs
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
local total = 0
|
||||
local top = 0
|
||||
local amount = 0
|
||||
|
||||
|
||||
--> check if is a custom script (if has .script)
|
||||
if (custom_object:IsScripted()) then
|
||||
|
||||
@@ -155,15 +155,15 @@
|
||||
_detalhes:EndRefresh (instance, 0, combat, combat [1])
|
||||
end
|
||||
|
||||
local okey, total, top, amount = _pcall (func, combat, instance_container, instance)
|
||||
local okey, _total, _top, _amount = _pcall (func, combat, instance_container, instance)
|
||||
if (not okey) then
|
||||
_detalhes:Msg ("|cFFFF9900error on custom display function|r:", total)
|
||||
return _detalhes:EndRefresh (instance, 0, combat, combat [1])
|
||||
end
|
||||
|
||||
total = total or 0
|
||||
top = top or 0
|
||||
amount = amount or 0
|
||||
total = _total or 0
|
||||
top = _top or 0
|
||||
amount = _amount or 0
|
||||
|
||||
else --does not have a .script
|
||||
--> get the attribute
|
||||
@@ -178,7 +178,6 @@
|
||||
|
||||
--> build container
|
||||
total, top, amount = atributo_custom:BuildActorList (func, custom_object.source, custom_object.target, custom_object.spellid, combat, combat_container, container_index, instance_container, instance, custom_object)
|
||||
|
||||
end
|
||||
|
||||
if (custom_object:IsSpellTarget()) then
|
||||
|
||||
Reference in New Issue
Block a user