Johnny C. Lam [10-31-13 - 19:06]
diff --git a/scripts/OvaleDeathKnight.lua b/scripts/OvaleDeathKnight.lua
index a4bcade..725720b 100644
--- a/scripts/OvaleDeathKnight.lua
+++ b/scripts/OvaleDeathKnight.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Frost, Unholy"
+ local code = [[
Define(army_of_the_dead 42650)
SpellInfo(army_of_the_dead duration=4 frost=1 blood=1 unholy=1 runicpower=-300 cd=600 )
SpellAddBuff(army_of_the_dead army_of_the_dead=1)
@@ -189,4 +192,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("DEATHKNIGHT", "Ovale", "[5.2] Ovale: Frost, Unholy", code)
+ OvaleScripts:RegisterScript("DEATHKNIGHT", name, desc, code)
+end
diff --git a/scripts/OvaleDruid.lua b/scripts/OvaleDruid.lua
index 09e8d1e..93b9cc5 100644
--- a/scripts/OvaleDruid.lua
+++ b/scripts/OvaleDruid.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Balance, Feral"
+ local code = [[
Define(berserk 50334)
SpellInfo(berserk duration=10 cd=180 )
SpellAddBuff(berserk berserk=1)
@@ -275,4 +278,5 @@ AddIcon mastery=2 help=cd
}
]]
-OvaleScripts:RegisterScript("DRUID", "Ovale", "[5.2] Ovale: Balance, Feral", code)
+ OvaleScripts:RegisterScript("DRUID", name, desc, code)
+end
diff --git a/scripts/OvaleHunter.lua b/scripts/OvaleHunter.lua
index 72e4631..373968b 100644
--- a/scripts/OvaleHunter.lua
+++ b/scripts/OvaleHunter.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Beast Mastery, Marksmanship, Survival"
+ local code = [[
Define(a_murder_of_crows 131900)
Define(aimed_shot 19434)
SpellInfo(aimed_shot focus=50 )
@@ -238,4 +241,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("HUNTER", "Ovale", "[5.2] Ovale: Beast Mastery, Marksmanship, Survival", code)
+ OvaleScripts:RegisterScript("HUNTER", name, desc, code)
+end
diff --git a/scripts/OvaleMage.lua b/scripts/OvaleMage.lua
index aba96f9..a77e946 100644
--- a/scripts/OvaleMage.lua
+++ b/scripts/OvaleMage.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Arcane, Fire, Frost"
+ local code = [[
Define(alter_time 110909)
SpellInfo(alter_time duration=6 )
SpellAddBuff(alter_time alter_time=1)
@@ -230,4 +233,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("MAGE", "Ovale", "[5.2] Ovale: Arcane, Fire, Frost", code)
+ OvaleScripts:RegisterScript("MAGE", name, desc, code)
+end
diff --git a/scripts/OvaleMonk.lua b/scripts/OvaleMonk.lua
index e34bb0e..6873619 100644
--- a/scripts/OvaleMonk.lua
+++ b/scripts/OvaleMonk.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Windwalker"
+ local code = [[
Define(berserking 26297)
SpellInfo(berserking duration=10 cd=180 )
SpellAddBuff(berserking berserking=1)
@@ -97,4 +100,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("MONK", "Ovale", "[5.2] Ovale: Windwalker", code)
+ OvaleScripts:RegisterScript("MONK", name, desc, code)
+end
diff --git a/scripts/OvalePaladin.lua b/scripts/OvalePaladin.lua
index a10f934..5793717 100644
--- a/scripts/OvalePaladin.lua
+++ b/scripts/OvalePaladin.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Retribution"
+ local code = [[
Define(avenging_wrath 31884)
SpellInfo(avenging_wrath duration=20 cd=180 )
SpellAddBuff(avenging_wrath avenging_wrath=1)
@@ -101,4 +104,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("PALADIN", "Ovale", "[5.2] Ovale: Retribution", code)
+ OvaleScripts:RegisterScript("PALADIN", name, desc, code)
+end
diff --git a/scripts/OvalePriest.lua b/scripts/OvalePriest.lua
index 70a540f..2fdd0e7 100644
--- a/scripts/OvalePriest.lua
+++ b/scripts/OvalePriest.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Shadow"
+ local code = [[
Define(berserking 26297)
SpellInfo(berserking duration=10 cd=180 )
SpellAddBuff(berserking berserking=1)
@@ -121,4 +124,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("PRIEST", "Ovale", "[5.2] Ovale: Shadow", code)
+ OvaleScripts:RegisterScript("PRIEST", name, desc, code)
+end
diff --git a/scripts/OvaleRogue.lua b/scripts/OvaleRogue.lua
index 899da3d..c575617 100644
--- a/scripts/OvaleRogue.lua
+++ b/scripts/OvaleRogue.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Assassination, Combat, Subtlety"
+ local code = [[
Define(adrenaline_rush 13750)
SpellInfo(adrenaline_rush duration=15 cd=180 )
SpellAddBuff(adrenaline_rush adrenaline_rush=1)
@@ -202,4 +205,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("ROGUE", "Ovale", "[5.2] Ovale: Assassination, Combat, Subtlety", code)
+ OvaleScripts:RegisterScript("ROGUE", name, desc, code)
+end
diff --git a/scripts/OvaleShaman.lua b/scripts/OvaleShaman.lua
index 3dc2bcb..e892728 100644
--- a/scripts/OvaleShaman.lua
+++ b/scripts/OvaleShaman.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Elemental, Enhancement"
+ local code = [[
Define(ancestral_swiftness 16188)
SpellInfo(ancestral_swiftness cd=90 )
SpellAddBuff(ancestral_swiftness ancestral_swiftness=1)
@@ -212,4 +215,5 @@ AddIcon mastery=2 help=cd
}
]]
-OvaleScripts:RegisterScript("SHAMAN", "Ovale", "[5.2] Ovale: Elemental, Enhancement", code)
+ OvaleScripts:RegisterScript("SHAMAN", name, desc, code)
+end
diff --git a/scripts/OvaleWarlock.lua b/scripts/OvaleWarlock.lua
index 6f426d1..eea6ab4 100644
--- a/scripts/OvaleWarlock.lua
+++ b/scripts/OvaleWarlock.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Affliction, Demonology, Destruction"
+ local code = [[
Define(agony 980)
SpellInfo(agony duration=24 tick=2 haste=spell )
SpellAddTargetDebuff(agony agony=1)
@@ -303,4 +306,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("WARLOCK", "Ovale", "[5.2] Ovale: Affliction, Demonology, Destruction", code)
+ OvaleScripts:RegisterScript("WARLOCK", name, desc, code)
+end
diff --git a/scripts/OvaleWarrior.lua b/scripts/OvaleWarrior.lua
index b863903..7754a9f 100644
--- a/scripts/OvaleWarrior.lua
+++ b/scripts/OvaleWarrior.lua
@@ -1,7 +1,10 @@
local _, Ovale = ...
-local OvaleScripts = Ovale:GetModule("OvaleScripts")
+local OvaleScripts = Ovale.OvaleScripts
-local code = [[
+do
+ local name = "Ovale"
+ local desc = "[5.2] Ovale: Arms, Fury, Protection"
+ local code = [[
Define(avatar 107574)
SpellInfo(avatar duration=24 cd=180 )
SpellAddBuff(avatar avatar=1)
@@ -277,4 +280,5 @@ AddIcon mastery=3 help=cd
}
]]
-OvaleScripts:RegisterScript("WARRIOR", "Ovale", "[5.2] Ovale: Arms, Fury, Protection", code)
+ OvaleScripts:RegisterScript("WARRIOR", name, desc, code)
+end