Skip to content

Instantly share code, notes, and snippets.

@jokeyrhyme
Last active November 13, 2018 20:16
Show Gist options
  • 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