I'm currently using dominium's ww pvp profile for pvp.
I'm trying to make the profile consume each 10stacks of tigereye brew at a time instead of consume both of em at the same time when i saved up to 20 stacks of eye brew.
how do i make it not consume another 10stacks of tigereye brew when I have the current existing tigereyebrew buff up? :confused:
here's the code cd code:
PHP Code:
local _,cd,havecd = GetInventoryItemCooldown("player",13)
local Tigereye,_,_,TigereyeBrewCount = UnitBuffID("player",125195)
if CdMode == 1 then
return false
end
if CdMode ~= 1
and cd == 0
and Tigereye
and TigereyeBrewCount >= 10
and UnitExists("target")
and UnitAffectingCombat("player") then
if PlayerChi < 2
and PlayerEnergy >= 40 then
CastSpellByID(100780, "target")
end
if PlayerEnergy < 60 then
return true
end
end
if CdMode ~= 1 then
if Tigereye
and TigereyeBrewCount >= 10
and cd == 0
and UnitExists("target")
and UnitAffectingCombat("player")
and PlayerChi >= 2
and PlayerEnergy >= 50
--and UnitIsEnemy("target", "player")
and IsSpellInRange("Jab", "target") == 1 then
CastSpellByName(GetSpellInfo(116740),nil)
CastSpellByName(GetSpellInfo(123904),nil)
--return true
end
end
thanks in advance.