Commit 87a83369 authored by Ivaria's avatar Ivaria
Browse files

Fixed use of deprecated UnitMana/UnitManaMax APIs. TOC bump for patch 7.2.

parent 2617a0b3
......@@ -93,8 +93,8 @@ local UnitIsCharmed = UnitIsCharmed;
local UnitCanAttack = UnitCanAttack;
local GetNumGroupMembers = GetNumGroupMembers;
local UnitName = UnitName;
local UnitMana = UnitMana;
local UnitManaMax = UnitManaMax;
local UnitPower = UnitPower;
local UnitPowerMax = UnitPowerMax;
local UnitThreatSituation = UnitThreatSituation;
local UnitClass = UnitClass;
local UnitPowerType = UnitPowerType;
......@@ -338,8 +338,8 @@ function VUHDO_setHealth(aUnit, aMode)
tInfo["debuff"], tInfo["debuffName"] = VUHDO_determineDebuff(aUnit);
tInfo["isPet"] = tIsPet;
tInfo["powertype"] = tonumber(tPowerType);
tInfo["power"] = UnitMana(aUnit);
tInfo["powermax"] = UnitManaMax(aUnit);
tInfo["power"] = UnitPower(aUnit);
tInfo["powermax"] = UnitPowerMax(aUnit);
tInfo["charmed"] = UnitIsCharmed(aUnit) and UnitCanAttack("player", aUnit);
tInfo["aggro"] = false;
tInfo["group"] = VUHDO_getUnitGroup(aUnit, tIsPet);
......
## Interface: 70100
## Interface: 70200
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.83
## Version: 3.84
## 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
......
......@@ -8,8 +8,8 @@ local VUHDO_IN_RAID_TARGET_BUTTONS;
local VUHDO_PANEL_SETUP;
local VUHDO_BUTTON_CACHE;
local UnitPowerType = UnitPowerType;
local UnitMana = UnitMana;
local UnitManaMax = UnitManaMax;
local UnitPower = UnitPower;
local UnitPowerMax = UnitPowerMax;
local InCombatLockdown = InCombatLockdown;
local pairs = pairs;
local _;
......@@ -53,14 +53,14 @@ function VUHDO_updateManaBars(aUnit, aChange)
if not VUHDO_isConfigDemoUsers() then
if 1 == aChange then
tInfo["power"] = UnitMana(aUnit);
tInfo["power"] = UnitPower(aUnit);
elseif 2 == aChange then
tInfo["powermax"] = UnitManaMax(aUnit);
tInfo["powermax"] = UnitPowerMax(aUnit);
elseif 3 == aChange then
tPowerType, _ = UnitPowerType(aUnit);
tInfo["powertype"] = tonumber(tPowerType);
tInfo["powermax"] = UnitManaMax(aUnit);
tInfo["power"] = UnitMana(aUnit);
tInfo["powermax"] = UnitPowerMax(aUnit);
tInfo["power"] = UnitPower(aUnit);
end
end
......
......@@ -11,8 +11,8 @@ local UnitPowerType = UnitPowerType;
--local UnitHealthMax = UnitHealthMax;
local UnitHealth = UnitHealth;
local UnitName = UnitName;
local UnitMana = UnitMana;
local UnitManaMax = UnitManaMax;
local UnitPower = UnitPower;
local UnitPowerMax = UnitPowerMax;
local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
local UnitIsConnected = UnitIsConnected;
local UnitIsUnit = UnitIsUnit;
......@@ -113,8 +113,8 @@ local function VUHDO_fillCustomInfo(aUnit)
tInfo["unit"] = aUnit;
tInfo["class"] = tClassName;
tInfo["powertype"] = tonumber(tPowerType);
tInfo["power"] = UnitMana(aUnit);
tInfo["powermax"] = UnitManaMax(aUnit);
tInfo["power"] = UnitPower(aUnit);
tInfo["powermax"] = UnitPowerMax(aUnit);
tInfo["dead"] = UnitIsDeadOrGhost(aUnit);
tInfo["connected"] = UnitIsConnected(aUnit);
if tLocalClass == tName then
......
## Interface: 70100
## Interface: 70200
## Title: VuhDo ['vu:du:] - Options
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.83
## Version: 3.84
## Notes: VuhDo Options
## SavedVariables: VUHDO_OPTIONS_SETTINGS
## SavedVariablesPerCharacter: VUHDO_GLOBAL_ICONS, VUHDO_GI_SCAN_IDX
......
......@@ -18,6 +18,7 @@ local VUHDO_ACTIVE_TRACE_SPELLS = {
local VUHDO_TRAIL_OF_LIGHT_SPELL_ID = 200128;
local VUHDO_SPELL_TRACE_TRAIL_OF_LIGHT = { };
local sIsPlayerKnowsTrailOfLight = false;
local sCurrentPlayerTrailOfLight = nil;
local sTrailOfLightIcon = nil;
......@@ -37,6 +38,7 @@ function VUHDO_spellTraceInitLocalOverrides()
VUHDO_PLAYER_GUID = UnitGUID("player");
VUHDO_RAID_GUIDS = _G["VUHDO_RAID_GUIDS"];
VUHDO_INTERNAL_TOGGLES = _G["VUHDO_INTERNAL_TOGGLES"];
sShowSpellTrace = VUHDO_CONFIG["SHOW_SPELL_TRACE"];
sSpellTraceStoredSettings = VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"];
sSpellTraceDefaultDuration = VUHDO_CONFIG["SPELL_TRACE"]["duration"];
......
Version 3.84
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:
-- Fixed use of deprecated UnitMana/UnitManaMax APIs
Improvements:
-- TOC bump for patch 7.2
--------------------------------------------------------------
Version 3.83
......
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