|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function KRB()
if (Very large snipped condition) then
if(KCheckFriendlyBuffs("BUFF_NAME")) then
--Nothing happens
else
CastSpellByName("BUFF_NAME")
end
WaitTimer.Wait(1, KRB,"KRBTimer")
else
if (UnitIsUnit("focus1", "target")) then
--Nothing happens
else
KMoveTo("0")
end
end
end
|
This was my issue, I need event handling which then triggers some error checking and other stuff, ultimately landing us in KMoveTo, KMoveTo, may or may not call KRB (The function you are looking at.) KRB then loops through (calling tradition WaitTimer via LibStub). Now Worse case I can call the KMoveTo, and it works, except for the second time the buff would apply. I can get it to do /castSpellbyname once, but once I encounter the wait timer, I simply can't get it to happen again. If you need any more code i'd be happy to supply, but I do anonymize the code (purpose doesn't change just names) until it is a finished product.