Thread: Spell cost
View Single Post
03-21-18, 03:38 AM   #8
aallkkaa
A Warpwood Thunder Caller
 
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 98
Originally Posted by Phanx View Post
I assume type is the power type index (0 is MANA; see PowerTypeColor)
Just checked it for Enhancement Shaman's Stormstrike:
Code:
Dump: value=GetSpellPowerCost(17364)
[1]={
  [1]={
    hasRequiredAura=false,
    type=11,
    name="MAELSTROM",
    cost=40,
    minCost=40,
    requiredAuraID=0,
    costPercent=0,
    costPerSec=0
  }
}
Matches the values in the link you provided:
Code:
PowerBarColor[11] = PowerBarColor["MAELSTROM"];

Originally Posted by Phanx View Post
Unclear. I can't test, but maybe there's a second table for something like an enhancement shaman's Healing Surge which costs mana but can additionally consume maelstrom to become instant cast?
Also tested:
Code:
Dump: value=GetSpellPowerCost(188070)
[1]={
  [1]={
    hasRequiredAura=false,
    type=0,
    name="MANA",
    cost=48400,
    minCost=48400,
    requiredAuraID=0,
    costPercent=22,
    costPerSec=0
  }
}
Not in this case.

BUT, for a Feral Druid's Ferocious Bite:
Code:
Dump: value=GetSpellPowerCost(22568)
[1]={
  [1]={
    hasRequiredAura=false,
    type=3,
    name="ENERGY",
    cost=25,
    minCost=25,
    requiredAuraID=0,
    costPercent=0,
    costPerSec=0
  },
  [2]={
    hasRequiredAura=false,
    type=4,
    name="COMBO_POINTS",
    cost=5,
    minCost=1,
    requiredAuraID=0,
    costPercent=0,
    costPerSec=0
  }
}
EDIT: Also, the costPercent value is probably always zero unless the resource is MANA.

Last edited by aallkkaa : 03-21-18 at 03:53 AM.
  Reply With Quote