|
Fails to work on multi-target fights and boss fights where the player is always in combat.
|
Always used to work fine for me (even in multi-target fights and bosses), although it's been a while since i used the default frames... (PlayerFrame.inCombat seemed to indicate whether autoattack was active, while UnitAffectingCombat worked to see if you were combat flagged or not). Always thought it was rather confusing that a flag called "inCombat" didn't actually tell you if you were in combat or not. Maybe they "fixed" it at some point...
But the IsCurrentAction version is guaranteed to work, so probably better to use that.
Personally, i just use the discord DL_ATTACKING flag, and have seperate keybinds for autoattack on and autoattack off, and it hasn't failed me ever (except when discord gets disabled after a patch and i forget to reenable it <_< )