general round of code cleanup and making it more robust

This commit is contained in:
Tercio Jose
2022-12-25 14:43:36 -03:00
parent 7d5d80073b
commit 6dd148c438
9 changed files with 664 additions and 608 deletions
+15 -1
View File
@@ -181,12 +181,26 @@ do
function _detalhes:GetFlag (actor)
return self.flag_original or actor and actor.flag_original
end
function _detalhes:GetSpells()
return self.spells._ActorTable
end
function _detalhes:GetActorSpells()
return self.spells._ActorTable
end
function _detalhes:GetSpell (spellid)
function _detalhes:GetSpell(spellid)
return self.spells._ActorTable [spellid]
end
---return an array of pet names
---@return table
function _detalhes:GetPets()
return self.pets
end
---return an array of pet names
---@return table
function _detalhes:Pets()
return self.pets
end