GetRuneCount

From Warcraft Wiki
Jump to navigation Jump to search

Returns the Death Knight's number of runes for a slot.

count = GetRuneCount(runeIndex)

Arguments

runeIndex
number - Ranging from 1 to 6 which correspond to the available rune slots from left to right.

Returns

count
number - 1 if the rune is available and not on cooldown or 0 if the rune is on cooldown.

Details

To find out how many runes the player has available to spend:

total = 0
for i=1,6 do
    total = total + GetRuneCount(i)
end
print(total)

Patch changes

Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Added.

See also