Thank you, good point.
I've updated it to:
Lua Code:
local _, arg2, _, arg4, _, _, _, _, _, _, _, arg12, _, _, arg15 = ...
if arg4 == playerGUID then
if (arg2 == 'SWING_DAMAGE' and type(arg12) == 'number') or (arg2 == 'SPELL_DAMAGE' and (arg12 == 121473 or arg12 == 121474) and type(arg15) == 'number') then --this behemoth ensures that our white swing or shadow blade swing landed and wasnt dodged blocked parried missed etc
shadowtechniques = shadowtechniques + 1
UpdateSTFText()
elseif (arg2 == 'SPELL_ENERGIZE' and arg12 == 196911) then --shadow techniques procced 1-2 combo points, reset the counter
shadowtechniques = 0
UpdateSTFText()
end
end