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