Originally Posted by
Bossqwerty
Figure I'll ask one more time since I had no luck before. Does anyone have any idea how I might track swing timers? Would really appreciate it if someone could help me out with that. I tried looking at a couple swing timer addons (quartz, ld50_abar) but I don't really understand enough about lua / coding in general for it to have actually helped me any. I need to know how close both MH and OH are swing are to actually firing basically.
Code:
function events:COMBAT_LOG_EVENT_UNFILTERED(...)
if (select(3, ...) == "SWING_DAMAGE" or select(3, ...) == "SWING_MISSED") and (bit.band(select(5, ...), COMBATLOG_OBJECT_AFFILIATION_MASK) == COMBATLOG_OBJECT_AFFILIATION_MINE) then
swingTime = UnitAttackSpeed("player")
swingEnd = GetTime() + swingTime
end
You welcome,friend.
All you need is create frame and register this event to it(check it in my code,its easy)