WoW:Sea.wow.tooltip.GetSpellDetails: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page Sea.wow.tooltip.GetSpellDetails to Sea.wow.tooltip.GetSpellDetails without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
GetSpellDetails( index, bookType, | <pre> | ||
GetSpellDetails( index, bookType, spellTable ) | |||
:index = Spell Index | :index = Spell Index | ||
:bookType = "spell" or "pet" | :bookType = "spell" or "pet" | ||
| Line 23: | Line 24: | ||
description - Description | description - Description | ||
} | } | ||
</pre> | |||
[[Category:Cosmos (AddOn)]] | |||
Latest revision as of 04:48, 15 August 2023
GetSpellDetails( index, bookType, spellTable )
:index = Spell Index
:bookType = "spell" or "pet"
:spellTable = Where we store the data
Returns a table: {
ID - SpellID for the spell in the spellbook
castTime - positive secs of cast time
- 0 Channeled
- -1 Instant Cast
- -2 Instant
- -3 Next melee / Next Ranged
crit - x.x% crit chance
manaCost - Mana cost
energyCost - Energy cost
rageCost - Rage cost
minRange - Casting min range to target
maxRange - Casting max range to target
cooldown - cooldown between casts in seconds
These variables aren't localized
requires - What is required before the spell can be cast?
tools - Tools required to cast the spell
reagents - Reagents required to cast the spell
description - Description
}