Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C PetBattles.GetPlayerTrapAbility

Last wiki revision 2022-08-01

Returns the ability ID for the best trap available to the player in the pet battle. trapAbilityID = C_PetBattles.GetPlayerTrapAbility

  • trapAbilityID: - Ability ID of the best trap you have available.

Additional and better traps unlock through achievements, and this function will give different returns as those achievements are accomplished.

  • - Determine if trap can be used
  • - Attempt to trap the opponent
  • Pet Battle Functions

Source

https://warcraft.wiki.gg/wiki/API_C_PetBattles.GetPlayerTrapAbility · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.