Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(List of returns added to help out authors)
(Unbold items that do not actually appear under any effects)
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
   
 
== Details ==
 
== Details ==
  +
These effect names can be passed to {{api|C_PetBattles.GetAbilityEffectInfo}} in order to return information about that effect. For example, to return the damage variance of [[Baby Winston|Baby Winston's]] [[Tesla Cannon]]:
  +
  +
/dump C_PetBattles.GetAbilityEffectInfo(1625, 1, 1, "variance")
  +
[1]=60
  +
 
This function returns an extreme amount of data and is best dealt with by putting the results directly into a table. This is how Blizzard uses it:
 
This function returns an extreme amount of data and is best dealt with by putting the results directly into a table. This is how Blizzard uses it:
  +
 
local effectParamStrings = {C_PetBattles.GetAllEffectNames()}
 
local effectParamStrings = {C_PetBattles.GetAllEffectNames()}
  +
  +
=== Effects ===
   
 
This the list of returns as of Patch 5.3.0:
 
This the list of returns as of Patch 5.3.0:
  +
accuracy
 
  +
* '''accuracy''' - Ability hit chance percentage (e.g. 0%, 25%, 35%, 50%, 85%, 100%, 150%)
auraabilityid
+
* auraabilityid
auraid
+
* '''auraid'''
basechancetosucceed
+
* '''basechancetosucceed'''
bonuspoints
+
* '''bonuspoints'''
bonusstate
+
* '''bonusstate'''
boost
 
  +
* '''boost'''
casterimmunestate
+
* '''casterimmunestate'''
casterstate
+
* '''casterstate'''
casterstatevalue
+
* '''casterstatevalue'''
chainfailure
+
* '''chainfailure'''
chance
+
* '''chance'''
dontmiss
+
* dontmiss
duration
+
* '''duration'''
duration2
+
* '''duration2'''
evenmorepoints
+
* '''evenmorepoints'''
healthpercentage
+
* '''healthpercentage'''
healthpercentthreshold
+
* '''healthpercentthreshold'''
increasepertoss
+
* '''increasepertoss'''
index
+
* index
isperiodic
+
* '''isperiodic'''
lockduration
+
* '''lockduration'''
maxallowed
+
* '''maxallowed'''
maxpoints
+
* '''maxpoints'''
morepoints
+
* '''morepoints'''
newduration
+
* newduration
none
+
* none
overrideindex
+
* '''overrideindex'''
percentage
+
* '''percentage'''
points
+
* '''points'''
pointsincreaseperuse
+
* '''pointsincreaseperuse'''
pointsmax
+
* '''pointsmax'''
reportfailsasimmune
+
* '''reportfailsasimmune'''
requiredcasterpettype
+
* requiredcasterpettype
requiredcasterstate
+
* '''requiredcasterstate'''
requiredtargetpettype
+
* requiredtargetpettype
requiredtargetstate
+
* '''requiredtargetstate'''
state
 
  +
* '''state'''
statechange
+
* '''statechange'''
statemax
+
* '''statemax'''
statemin
+
* '''statemin'''
statepoints
+
* '''statepoints'''
statetomultiplyagainst
+
* '''statetomultiplyagainst'''
statetotriggermaxpoints
+
* '''statetotriggermaxpoints'''
statevalue
+
* '''statevalue'''
targetimmunestate
+
* '''targetimmunestate'''
targetstate
+
* '''targetstate'''
targetstatevalue
+
* '''targetstatevalue'''
targetteststate
+
* '''targetteststate'''
targetteststatevalue
+
* '''targetteststatevalue'''
turnstoadvance
+
* turnstoadvance
unused
+
* '''unused'''
weatherstate
+
* weatherstate
  +
  +
  +
These are the newer abilities that appear as of patch 8.0.1:
  +
  +
* ability 1
  +
* ability 2
  +
* asdf
  +
* '''cooldownmodification'''
  +
* '''enablereverse'''
  +
* int 1
  +
* '''power''' - The base damage or healing of the ability (base power is before being taking level, quality, or breed - effectively a level 1, poor quality pet, with no breed bonuses)
  +
* sdf
  +
* '''threshold'''
  +
* '''tickdownfirstround'''
  +
* '''variance''' - the variance to be applied to '''power'''. Base damage or healing will be power±(variance/200)
   
 
== Patch history ==
 
== Patch history ==
 
{{Patch 5.0.4|note=Added.}}
 
{{Patch 5.0.4|note=Added.}}
  +
  +
== See also ==
  +
* {{api|C_PetBattles.GetAbilityEffectInfo}}
  +
* [[World_of_Warcraft_API#Pet_Battle_Functions | Pet Battle Functions]]

Revision as of 05:14, 25 November 2018

Returns the name of an effect parameter for Pet Battles.

effectParamString1, effectParamString2, effectParamString3, ... = {C_PetBattles.GetAllEffectNames()}

Returns

effectParamString1, effectParamString2, effectParamString3, ...
String - Each return is the name of a different effect parameter for Pet Battles.

Details

These effect names can be passed to C_PetBattles.GetAbilityEffectInfo in order to return information about that effect. For example, to return the damage variance of Baby Winston's Peticon-mechanical Spell winston zap [Tesla Cannon]:

/dump C_PetBattles.GetAbilityEffectInfo(1625, 1, 1, "variance")
[1]=60

This function returns an extreme amount of data and is best dealt with by putting the results directly into a table. This is how Blizzard uses it:

local effectParamStrings = {C_PetBattles.GetAllEffectNames()}

Effects

This the list of returns as of Patch 5.3.0:

  • accuracy - Ability hit chance percentage (e.g. 0%, 25%, 35%, 50%, 85%, 100%, 150%)
  • auraabilityid
  • auraid
  • basechancetosucceed
  • bonuspoints
  • bonusstate
  • boost
  • casterimmunestate
  • casterstate
  • casterstatevalue
  • chainfailure
  • chance
  • dontmiss
  • duration
  • duration2
  • evenmorepoints
  • healthpercentage
  • healthpercentthreshold
  • increasepertoss
  • index
  • isperiodic
  • lockduration
  • maxallowed
  • maxpoints
  • morepoints
  • newduration
  • none
  • overrideindex
  • percentage
  • points
  • pointsincreaseperuse
  • pointsmax
  • reportfailsasimmune
  • requiredcasterpettype
  • requiredcasterstate
  • requiredtargetpettype
  • requiredtargetstate
  • state
  • statechange
  • statemax
  • statemin
  • statepoints
  • statetomultiplyagainst
  • statetotriggermaxpoints
  • statevalue
  • targetimmunestate
  • targetstate
  • targetstatevalue
  • targetteststate
  • targetteststatevalue
  • turnstoadvance
  • unused
  • weatherstate


These are the newer abilities that appear as of patch 8.0.1:

  • ability 1
  • ability 2
  • asdf
  • cooldownmodification
  • enablereverse
  • int 1
  • power - The base damage or healing of the ability (base power is before being taking level, quality, or breed - effectively a level 1, poor quality pet, with no breed bonuses)
  • sdf
  • threshold
  • tickdownfirstround
  • variance - the variance to be applied to power. Base damage or healing will be power±(variance/200)

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.

See also