- fixed GCD module to work in all localizations

- also cleaned up space/tab formatting
This commit is contained in:
Parnic
2008-06-25 03:06:53 +00:00
parent 546a19c2d8
commit fea0edddce

View File

@ -40,15 +40,15 @@ end
function GlobalCoolDown.prototype:GetSpellName()
local defaultSpells = {
ROGUE="Cheap Shot",
PRIEST="Renew",
DRUID="Rejuvenation",
WARRIOR="Battle Shout",
MAGE="Frost Armor",
WARLOCK="Life Tap",
PALADIN="Purify",
SHAMAN="Lightning Shield",
HUNTER="Serpent Sting"
ROGUE=GetSpellInfo(1833), -- cheap shot
PRIEST=GetSpellInfo(139), -- renew
DRUID=GetSpellInfo(774), -- rejuvenation
WARRIOR=GetSpellInfo(6673), -- battle shout
MAGE=GetSpellInfo(168), -- frost armor
WARLOCK=GetSpellInfo(1454), -- life tap
PALADIN=GetSpellInfo(1152), -- purify
SHAMAN=GetSpellInfo(324), -- lightning shield
HUNTER=GetSpellInfo(1978) -- serpent sting
}
local _, unitClass = UnitClass("player")
return defaultSpells[unitClass]