Rename "death_knight_<presence>" to "deathknight_<presence>".
Johnny C. Lam [04-06-14 - 18:46]
Rename "death_knight_<presence>" to "deathknight_<presence>".
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1275 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleRunes.lua b/OvaleRunes.lua
index d1f0c0e..2b1e5f2 100644
--- a/OvaleRunes.lua
+++ b/OvaleRunes.lua
@@ -1,7 +1,7 @@
--[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012 Sidoine
- Copyright (C) 2012, 2013 Johnny C. Lam
+ Copyright (C) 2012, 2013, 2014 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
@@ -296,7 +296,7 @@ statePrototype.ConsumeRune = function(state, atTime, name, snapshot)
end
end
local duration = 10 / state:GetSpellHasteMultiplier(snapshot)
- if OvaleStance:IsStance("death_knight_blood_presence") and OvaleSpellBook:IsKnownSpell(IMPROVED_BLOOD_PRESENCE) then
+ if OvaleStance:IsStance("deathknight_blood_presence") and OvaleSpellBook:IsKnownSpell(IMPROVED_BLOOD_PRESENCE) then
-- Improved Blood Presence increases rune regeneration rate by 20%.
duration = duration / 1.2
end
@@ -306,7 +306,7 @@ statePrototype.ConsumeRune = function(state, atTime, name, snapshot)
-- Each rune consumed generates 10 (12, if in Frost Presence) runic power.
local runicpower = state.runicpower
- if OvaleStance:IsStance("death_knight_frost_presence") then
+ if OvaleStance:IsStance("deathknight_frost_presence") then
runicpower = runicpower + 12
else
runicpower = runicpower + 10
diff --git a/OvaleStance.lua b/OvaleStance.lua
index 551868d..5f62650 100644
--- a/OvaleStance.lua
+++ b/OvaleStance.lua
@@ -26,9 +26,9 @@ local API_GetSpellInfo = GetSpellInfo
local OVALE_SPELLID_TO_STANCE = {
-- Death Knight
- [API_GetSpellInfo(48263)] = "death_knight_blood_presence",
- [API_GetSpellInfo(48265)] = "death_knight_unholy_presence",
- [API_GetSpellInfo(48266)] = "death_knight_frost_presence",
+ [API_GetSpellInfo(48263)] = "deathknight_blood_presence",
+ [API_GetSpellInfo(48265)] = "deathknight_unholy_presence",
+ [API_GetSpellInfo(48266)] = "deathknight_frost_presence",
-- Druid
[API_GetSpellInfo(768)] = "druid_cat_form",
[API_GetSpellInfo(783)] = "druid_travel_form",