Added an option to nest pet spells within a bar showing the pet name

This commit is contained in:
Tercio Jose
2023-05-14 16:30:09 -03:00
parent 907d88fad5
commit 7fb0ae469c
8 changed files with 152 additions and 68 deletions
+14
View File
@@ -71,6 +71,20 @@ local addonName, Details222 = ...
return self:PegaHabilidade (id, shouldCreate, token)
end
---return (boolean) if the container two or more spells within
---@return boolean
function container_habilidades:HasTwoOrMoreSpells()
local count = 0
for _ in pairs(self._ActorTable) do
count = count + 1
if (count >= 2) then
return true
end
end
return false
end
function container_habilidades:PegaHabilidade (id, criar, token)
local esta_habilidade = self._ActorTable [id]