Pretty simple little hack that maps the character palettes to RAM instead of ROM. The positive upshot of that is you can change the palettes dyanamically. It's pretty simple, just store the palettes to the corresponding RAM tables and the palette will change accordingly. Leaves fire power changing stuff intact, but may break certain patches that set $0D82 directly.
No credit necessary.