WeaponSwingTimer addon for classic, modified by me to fix bugs and add features. Most of the credit goes to LeftHandedGlove for the majority of the code. This addon code is under a general use license so can be publicly edited or modified.
Removed logic for when swing timer is sitting between 20% and 60%
Corrected logic for reducing swing timer. Previously was setting the timer to main_swing_timer * 0.4, now is reducing the timer by main_weapon_speed * 0.4
Added logic that a parry cannot reduce the swing timer below 20%
MissHandler is only called when source unit is player or target. Parries caused by other units are not being tracked, which will lead to some discrepancies on the player's and target's timers
med_swing_time
variablemin_swing_time
variable to localmain_swing_timer * 0.4
, now is reducing the timer bymain_weapon_speed * 0.4
MissHandler
is only called when source unit isplayer
ortarget
. Parries caused by other units are not being tracked, which will lead to some discrepancies on the player's and target's timers