Jump to content

Stack Count


iakovos1990

Recommended Posts

hi i try this  (Selfless Healer) but no work!!!! CAN HELP ME PLEASE???

 

LuaScript:

returnResult = false;
local name = GetSpellInfo(114250);
local _, _, _, count = UnitBuff("player", name);
if count and count >= 4 then returnResult = true; end

Research:

true

Var:

returnResult
Link to comment
Share on other sites

Hello, your code should good, I don't understand why you it doesn't work.

try to debug it with print like that :

returnResult = false;
local name = GetSpellInfo(114250);
local _, _, _, count = UnitBuff("player", name);
if count and count >= 4 then returnResult = true; end
print(tostring(returnResult) .. " - " .. tostring(count) .. " - " .. tostring(name))

 

Link to comment
Share on other sites

is no work i try this 

returnResult = false;
local name = GetSpellInfo(114250);
local _, _, _, count = UnitBuff("player", name);
if count and count >= 4 then returnResult = true; end
print(tostring(returnResult) .. " - " .. tostring(count) .. " - " .. tostring(name))
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...