diff --git a/HealthstoneAutoMacro.toc b/HealthstoneAutoMacro.toc index cc21646..3e534fc 100644 --- a/HealthstoneAutoMacro.toc +++ b/HealthstoneAutoMacro.toc @@ -1,5 +1,5 @@ ## Interface: 90002 -## Version: 1.2 +## Version: 1.2.1 ## Title: Healthstone Auto Macro ## Author: ollidiemaus ## Notes: Updates the Macro HAMHealthPot to use either Healthstone, Coastal Healing Potion, Silas' Vial of Continuous Curing or Emerald of Vigor diff --git a/code.lua b/code.lua index 77b4bf4..c8c2c5b 100644 --- a/code.lua +++ b/code.lua @@ -4,10 +4,13 @@ do local HSId = 5512; local NormalPotId = 171267; local PhialId = 177278; -- Phial of Serenity +local SiphId = 176409; -- Rejuvenating Siphoned Essence + function getPotNames() NormalPotName = GetItemInfo(NormalPotId); PhialName = GetItemInfo(PhialId); + SiphName = GetItemInfo(SiphId); -- fall back on connect sometimes GetItem fail if NormalPotName==nil then @@ -16,13 +19,17 @@ function getPotNames() if PhialName==nil then PhialName = "Phial of Serenity" end - return NormalPotName, PhialName + if SiphName==nil then + SiphName = "Rejuvenating Siphoned Essence" + end + return SiphName, NormalPotName, PhialName end function getPots() - NormalPotName, PhialName = getPotNames() + SiphName, NormalPotName, PhialName = getPotNames() return { {PhialName, GetItemCount(PhialId, false, false)}, + {SiphName, GetItemCount(SiphId, false, false)}, {NormalPotName, GetItemCount(NormalPotId, false, false)} }