Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. -- Pets with three or more attack types different than their pet type.
  2.  
  3. local count = 0
  4. for _,abilityID in ipairs(abilityList) do
  5. local abilityType,noHints = select(7, C_PetBattles.GetAbilityInfoByID(abilityID) )
  6. if not noHints and abilityType~=petType then
  7. count = count + 1
  8. end
  9. end
  10.  
  11. return count>=3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement