Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the ability ID for the best trap available to the player in the pet battle.
trapAbilityID = C_PetBattles.GetPlayerTrapAbility()
Returns
- trapAbilityID
- number - Ability ID of the best trap you have available.
Details
Additional and better traps unlock through achievements, and this function will give different returns as those achievements are accomplished.
Patch changes
Patch 5.0.4 (2012-08-28): Added.
See also
- C_PetBattles.IsTrapAvailable - Determine if trap can be used
- C_PetBattles.UseTrap - Attempt to trap the opponent
- Pet Battle Functions