Skip to content

Instantly share code, notes, and snippets.

@jokeyrhyme
Last active November 13, 2018 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jokeyrhyme/f65e565a18700cab9b7bcf46b9cb199e to your computer and use it in GitHub Desktop.
Save jokeyrhyme/f65e565a18700cab9b7bcf46b9cb199e to your computer and use it in GitHub Desktop.
WoW: Rematch addon: Scripts
if unique then
return true
end
same = {}
for p in AllPetIDs() do
s, _, l, x = C_PetJournal.GetPetInfoByPetID(p)
if s == speciesID then
if l > level and x >= xp then
table.insert(same, 1, p)
else
table.insert(same, p)
end
end
end
return same[1] == petID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment