it will misfire on boost if the battery light is on as that means that the voltage is low.
when you have a low voltage, the fuel pump is not delivering enough fuel, the injectors are working less, the spark is weaker - all things that make it mis-fire.
replace the regulator/alternator and it should be back to normal.