Commit 1e640a61 authored by Ivaria's avatar Ivaria
Browse files

Use new power type enumeration in place of deprecated constants

parent ff726ff6
## Interface: 70200
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.85
## Version: 3.86
## Notes: Raid Frames providing click-heal functionality, buff and debuff control, main tank management and much more
## SavedVariablesPerCharacter: VUHDO_CONFIG, VUHDO_PANEL_SETUP, VUHDO_SPELL_ASSIGNMENTS, VUHDO_HOSTILE_SPELL_ASSIGNMENTS, VUHDO_MM_SETTINGS, VUHDO_PLAYER_TARGETS, VUHDO_MAINTANK_NAMES, VUHDO_BUFF_SETTINGS, VUHDO_POWER_TYPE_COLORS, VUHDO_SPELLS_KEYBOARD, VUHDO_SPELL_CONFIG, VUHDO_BUFF_ORDER, VUHDO_SPEC_LAYOUTS, VUHDO_GROUP_SIZE, VUHDO_RAID, VUHDO_INDICATOR_CONFIG
## SavedVariables: VUHDO_DEFAULT_LAYOUT, VUHDO_DEFAULT_PROFILE, VUHDO_PROFILES, VUHDO_MANUAL_ROLES, VUHDO_SPELL_LAYOUTS, VUHDO_USER_CLASS_COLORS, VUHDO_DEBUFF_BLACKLIST, VUHDO_BOUQUETS, VUHDO_COMBAT_LOG_TRACE, VUHDO_GLOBAL_CONFIG, VUHDO_DEBUG
......
......@@ -481,9 +481,9 @@ end
--
local function VUHDO_chiEqualsValidator(anInfo, someCustom)
if anInfo["connected"] and not anInfo["dead"] then
tPower = UnitPower(anInfo["unit"], SPELL_POWER_CHI);
tPower = UnitPower(anInfo["unit"], VUHDO_UNIT_POWER_CHI);
if tPower == someCustom["custom"][1] then
return true, nil, tPower, -1, UnitPowerMax(anInfo["unit"], SPELL_POWER_CHI);
return true, nil, tPower, -1, UnitPowerMax(anInfo["unit"], VUHDO_UNIT_POWER_CHI);
else
return false, nil, -1, -1, -1;
end
......
......@@ -281,17 +281,19 @@ VUHDO_UPDATE_SPELL_TRACE = 37;
-- Unit power types (== Blizzard defined types)
VUHDO_UNIT_POWER_MANA = SPELL_POWER_MANA;
VUHDO_UNIT_POWER_RAGE = SPELL_POWER_RAGE;
VUHDO_UNIT_POWER_FOCUS = SPELL_POWER_FOCUS;
VUHDO_UNIT_POWER_ENERGY = SPELL_POWER_ENERGY;
VUHDO_UNIT_POWER_HAPPINESS = SPELL_POWER_COMBO_POINTS;
VUHDO_UNIT_POWER_RUNES = SPELL_POWER_RUNIC_POWER;
VUHDO_UNIT_POWER_LUNAR_POWER = SPELL_POWER_LUNAR_POWER;
VUHDO_UNIT_POWER_MAELSTROM = SPELL_POWER_MAELSTROM;
VUHDO_UNIT_POWER_INSANITY = SPELL_POWER_INSANITY;
VUHDO_UNIT_POWER_FURY = SPELL_POWER_FURY;
VUHDO_UNIT_POWER_PAIN = SPELL_POWER_PAIN;
VUHDO_UNIT_POWER_MANA = Enum.PowerType.Mana;
VUHDO_UNIT_POWER_RAGE = Enum.PowerType.Rage;
VUHDO_UNIT_POWER_FOCUS = Enum.PowerType.Focus;
VUHDO_UNIT_POWER_ENERGY = Enum.PowerType.Energy;
VUHDO_UNIT_POWER_HAPPINESS = Enum.PowerType.ComboPoints;
VUHDO_UNIT_POWER_RUNES = Enum.PowerType.RunicPower;
VUHDO_UNIT_POWER_LUNAR_POWER = Enum.PowerType.LunarPower;
VUHDO_UNIT_POWER_MAELSTROM = Enum.PowerType.Maelstrom;
VUHDO_UNIT_POWER_INSANITY = Enum.PowerType.Insanity;
VUHDO_UNIT_POWER_FURY = Enum.PowerType.Fury;
VUHDO_UNIT_POWER_PAIN = Enum.PowerType.Pain;
VUHDO_UNIT_POWER_CHI = Enum.PowerType.Chi;
VUHDO_UNIT_POWER_HOLY_POWER = Enum.PowerType.HolyPower;
......
## Interface: 70200
## Title: VuhDo ['vu:du:] - Options
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.85
## Version: 3.86
## Notes: VuhDo Options
## SavedVariables: VUHDO_OPTIONS_SETTINGS
## SavedVariablesPerCharacter: VUHDO_GLOBAL_ICONS, VUHDO_GI_SCAN_IDX
......
......@@ -415,7 +415,7 @@ function VUHDO_determineRole(aUnit)
if VUHDO_UNIT_POWER_MANA == tPowerType then
return 63; -- VUHDO_ID_RANGED_HEAL
elseif VUHDO_UNIT_POWER_ENERGY == tPowerType then
if UnitPowerMax(aUnit, SPELL_POWER_CHI) > 4 then -- WW Monks have 5 Chi (6 w/ Ascension)
if UnitPowerMax(aUnit, VUHDO_UNIT_POWER_CHI) > 4 then -- WW Monks have 5 Chi (6 w/ Ascension)
return 61; -- VUHDO_ID_MELEE_DAMAGE
else
return 60; -- VUHDO_ID_MELEE_TANK
......
......@@ -15,7 +15,7 @@ end
--
local function VUHDO_chiCalculator(anInfo)
if anInfo["connected"] and not anInfo["dead"] then
return UnitPower(anInfo["unit"], SPELL_POWER_CHI), UnitPowerMax(anInfo["unit"], SPELL_POWER_CHI)
return UnitPower(anInfo["unit"], VUHDO_UNIT_POWER_CHI), UnitPowerMax(anInfo["unit"], VUHDO_UNIT_POWER_CHI)
else
return 0, 0;
end
......@@ -26,7 +26,7 @@ end
--
local function VUHDO_holyPowerCalculator(anInfo)
if anInfo["connected"] and not anInfo["dead"] then
return UnitPower(anInfo["unit"], 9), UnitPowerMax(anInfo["unit"], 9);
return UnitPower(anInfo["unit"], VUHDO_UNIT_POWER_HOLY_POWER), UnitPowerMax(anInfo["unit"], VUHDO_UNIT_POWER_HOLY_POWER);
else
return 0, 0;
end
......
Version 3.86
Known issues:
-- Limited support for Class Order Hall Bodyguards
-- Bodyguards can be used in panels when set to target or focus
-- Bodyguards have no unit ID so for now are only partially supported
-- Incoming heal estimation reported is not even close to accurate
-- Bug in Blizzard API UnitGetIncomingHeals() - returns bogus values
-- Patch 7.1 disabled retrieval of unit facing and position in instances
-- This was an intentional breaking change by Blizzard
-- This breaks AOE Advice, Clusters and out-of-range direction arrow
-- At this time there is no way to fix or renable these features
Bugfixes:
-- Use new power type enumeration in place of deprecated constants
Improvements:
--------------------------------------------------------------
Version 3.85
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment