Can't restrict the event on the AltP tag, because apparently it lets you specify the power type?

This commit is contained in:
Andrew Scott
2016-10-28 21:13:02 -07:00
parent 01204aaffa
commit c0e1ea6fa8

View File

@ -137,7 +137,7 @@ DogTag:AddTag("Unit", "AltP", {
'index', 'number;undef', ALTERNATE_POWER_INDEX
},
ret = "number",
events = "UNIT_POWER_FREQUENT#$unit#ALTERNATE",
events = "UNIT_POWER_FREQUENT#$unit",
doc = L["Return the current alternate power of unit"],
example = ('[AltP] => "%d"'):format(UnitPowerMax("player",ALTERNATE_POWER_INDEX)*.632),
category = L["Power"]
@ -150,7 +150,7 @@ DogTag:AddTag("Unit", "MaxAltP", {
'index', 'number;undef', ALTERNATE_POWER_INDEX
},
ret = "number",
events = "UNIT_MAXPOWER#$unit#ALTERNATE",
events = "UNIT_MAXPOWER#$unit",
doc = L["Return the maximum alternate power of unit"],
example = ('[MaxAltP] => "%d"'):format(UnitPowerMax("player",ALTERNATE_POWER_INDEX)),
category = L["Power"]