update default unit prototype
This commit is contained in:
@@ -1220,7 +1220,7 @@ end
|
|||||||
specId = 0,
|
specId = 0,
|
||||||
specName = "",
|
specName = "",
|
||||||
role = "",
|
role = "",
|
||||||
renown = 1,
|
legendaryEnchant = 0,
|
||||||
covenantId = 0,
|
covenantId = 0,
|
||||||
talents = {},
|
talents = {},
|
||||||
conduits = {},
|
conduits = {},
|
||||||
@@ -1306,9 +1306,9 @@ end
|
|||||||
unitInfo.nameFull = unitName
|
unitInfo.nameFull = unitName
|
||||||
end
|
end
|
||||||
|
|
||||||
function openRaidLib.UnitInfoManager.AddUnitInfo(unitName, specId, renown, covenantId, talentsTableUnpacked, conduitsTableUnpacked, pvpTalentsTableUnpacked)
|
function openRaidLib.UnitInfoManager.AddUnitInfo(unitName, specId, legendaryEnchant, covenantId, talentsTableUnpacked, conduitsTableUnpacked, pvpTalentsTableUnpacked)
|
||||||
local unitInfo = openRaidLib.UnitInfoManager.GetUnitInfo(unitName, true)
|
local unitInfo = openRaidLib.UnitInfoManager.GetUnitInfo(unitName, true)
|
||||||
openRaidLib.UnitInfoManager.SetUnitInfo(unitName, unitInfo, specId, renown, covenantId, talentsTableUnpacked, conduitsTableUnpacked, pvpTalentsTableUnpacked)
|
openRaidLib.UnitInfoManager.SetUnitInfo(unitName, unitInfo, specId, legendaryEnchant, covenantId, talentsTableUnpacked, conduitsTableUnpacked, pvpTalentsTableUnpacked)
|
||||||
openRaidLib.publicCallback.TriggerCallback("UnitInfoUpdate", openRaidLib.GetUnitID(unitName), openRaidLib.UnitInfoManager.UnitData[unitName], openRaidLib.UnitInfoManager.GetAllUnitsInfo())
|
openRaidLib.publicCallback.TriggerCallback("UnitInfoUpdate", openRaidLib.GetUnitID(unitName), openRaidLib.UnitInfoManager.UnitData[unitName], openRaidLib.UnitInfoManager.GetAllUnitsInfo())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user