So with states you have the option to either use "Action End" or "Turn End" for their auto-removal timing, but with stat buffs it seems to be "Turn End" by default and I can't seem to find any option to change this to "Action End".
Is there some smart way to do this or will I have to dig around in the code?
You'd need to mess around with the code / plugins. Alternatively, replace your buffs with states that increase / decrease stats (you can even use the buff/debuff icons), but then you can't as easily make them stackable, or freely specify a duration.
Well fair, I will probably try to do somewith with the code then.
I would also like to make the Guard state end at "Action Start" (I'm using CTB and it doesn't really make sense for a character to still be guarding during the duration of their next turn), so I'll probably also have to code that anyways.