Skip to content

Commit

Permalink
changes to make it work with battle for azeroth (prepatch)
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Jul 23, 2018
1 parent a3a4d73 commit ac0c122
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions ManaWarning.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Author : Kwast
-- Author : Kwast
-- Create Date : 1/11/2008 3:46:08 PM

-- savedvariable
Expand Down Expand Up @@ -388,7 +388,7 @@ end

-- consts
CONST_VARSLOADED = "VARIABLES_LOADED";
CONST_POWERUPDATE = "UNIT_POWER";
CONST_POWERUPDATE = "UNIT_POWER_UPDATE";
CONST_HEALTHUPDATE = "UNIT_HEALTH";
CONST_PLAYER = "player";
CONST_SPEC_CHANGE = "ACTIVE_TALENT_GROUP_CHANGED";
Expand Down Expand Up @@ -777,8 +777,8 @@ end
function ManaWarning_PlayerManaUpdate()
-- if mana user atm
if ( UnitPowerType( CONST_PLAYER ) == 0 ) then
maxmana = UnitManaMax( CONST_PLAYER );
currentmana = UnitMana( CONST_PLAYER );
maxmana = UnitPowerMax( CONST_PLAYER );
currentmana = UnitPower( CONST_PLAYER );

bMayGiveWarning = true;
if ( bManaDoCombatCheck ) then
Expand Down Expand Up @@ -907,4 +907,4 @@ end
function GetCurrentTalentSpec()
local currentSpec = GetSpecialization()
return currentSpec and select(2, GetSpecializationInfo(currentSpec)) or "None"
end
end
4 changes: 2 additions & 2 deletions ManaWarning.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Author: Kwast of Aszune
## Interface: 70300
## Interface: 80000
## SavedVariablesPerCharacter: ManaWarning_Settings
## Title: ManaWarning
## Version: 4.6
## Version: 4.7
## X-eMail: [email protected]
ManaWarning.xml
ManaWarning.lua

0 comments on commit ac0c122

Please sign in to comment.