Skip to content

Commit

Permalink
Merge pull request #265 from p3lim-wow/legion-tags
Browse files Browse the repository at this point in the history
Legion tags
  • Loading branch information
haste committed Sep 10, 2016
2 parents 9addcc0 + ab54f1a commit 4e59b84
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions elements/tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,14 @@ local tagStrings = {
end]],

['soulshards'] = [[function()
if(IsPlayerSpell(WARLOCK_SOULBURN)) then
local num = UnitPower('player', SPELL_POWER_SOUL_SHARDS)
if(num > 0) then
return num
end
local num = UnitPower('player', SPELL_POWER_SOUL_SHARDS)
if(num > 0) then
return num
end
end]],

['holypower'] = [[function()
if(IsPlayerSpell(85673)) then
if(GetSpecialization() == SPEC_PALADIN_RETRIBUTION) then
local num = UnitPower('player', SPELL_POWER_HOLY_POWER)
if(num > 0) then
return num
Expand All @@ -299,15 +297,17 @@ local tagStrings = {
end]],

['chi'] = [[function()
local num = UnitPower('player', SPELL_POWER_CHI)
if(num > 0) then
return num
if(GetSpecialization() == SPEC_MONK_WINDWALKER) then
local num = UnitPower('player', SPELL_POWER_CHI)
if(num > 0) then
return num
end
end
end]],

['shadoworbs'] = [[function()
if(IsPlayerSpell(95740)) then
local num = UnitPower('player', SPELL_POWER_SHADOW_ORBS)
['arcanecharges'] = [[function()
if(GetSpecialization() == SPEC_MAGE_ARCANE) then
local num = UnitPower('player', SPELL_POWER_ARCANE_CHARGES)
if(num > 0) then
return num
end
Expand Down Expand Up @@ -399,10 +399,10 @@ local tagEvents = {
["pereclipse"] = 'UNIT_POWER',
['curmana'] = 'UNIT_POWER UNIT_MAXPOWER',
['maxmana'] = 'UNIT_POWER UNIT_MAXPOWER',
['soulshards'] = 'UNIT_POWER SPELLS_CHANGED',
['soulshards'] = 'UNIT_POWER',
['holypower'] = 'UNIT_POWER SPELLS_CHANGED',
['chi'] = 'UNIT_POWER',
['shadoworbs'] = 'UNIT_POWER SPELLS_CHANGED',
['chi'] = 'UNIT_POWER SPELLS_CHANGED',
['arcanecharges'] = 'UNIT_POWER SPELLS_CHANGED',
}

local unitlessEvents = {
Expand Down

0 comments on commit 4e59b84

Please sign in to comment.