Last active
          November 13, 2018 20:16 
        
      - 
      
 - 
        
Save jokeyrhyme/f65e565a18700cab9b7bcf46b9cb199e to your computer and use it in GitHub Desktop.  
    WoW: Rematch addon: Scripts
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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