Originally Posted by Phanx
|
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
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.