WoW:API CraftIsPetTraining: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(removedapi)
mNo edit summary
Line 1: Line 1:
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]].}}
{{wowapi|removed=3.0|replaceinfo=Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]]}}
{{wowapi}} __NOTOC__


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Determine if the current 'crafting' skill is the pet training one.
Determine if the current 'crafting' skill is the pet training one.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
  isPetTraining = CraftIsPetTraining()
  isPetTraining = CraftIsPetTraining()


 
== Parameters ==
== Returns ==
=== Returns ===
<!-- List each return value, together with its type -->
* isPetTraining (boolean) - true if the current "crafting" skill is the Hunter's Beast Training, false otherwise.
 
:;isPetTraining : Boolean - True if the current "crafting" skill is the Hunter's Beast Training; false otherwise.
 
 


== Details ==
== Details ==
<!-- Details not appropriate for the main description can go here.
As of Patch 2.2.3, the only skills which use the Crafting APIs (as opposed to the TradeSkill APIs) are Beast Training and Enchanting; when Beast Training is the active skill, those APIs behave somewhat differently than they do for Enchanting (and than the analogous TradeSkill APIs do for other skills)
    REMOVE the section if you're just going to restate the intro line! -->


: As of Patch 2.2.3, the only skills which use the Crafting APIs (as opposed to the TradeSkill APIs) are Beast Training and Enchanting; when Beast Training is the active skill, those APIs behave somewhat differently than they do for Enchanting (and than the analogous TradeSkill APIs do for other skills).
== Notes ==
* Removed in patch 3.0. See [[World of Warcraft API#TradeSkill Functions]]

Revision as of 18:49, 12 February 2021

WoW API < CraftIsPetTraining

Determine if the current 'crafting' skill is the pet training one.

isPetTraining = CraftIsPetTraining()

Parameters

Returns

  • isPetTraining (boolean) - true if the current "crafting" skill is the Hunter's Beast Training, false otherwise.

Details

As of Patch 2.2.3, the only skills which use the Crafting APIs (as opposed to the TradeSkill APIs) are Beast Training and Enchanting; when Beast Training is the active skill, those APIs behave somewhat differently than they do for Enchanting (and than the analogous TradeSkill APIs do for other skills)

Notes