The simple way is to calculate attack and defense differently, and use standard rules for elements, with resistance and absorption stuff.
The hard way is to allow such attacks deal both physical and elemental damage, 50/50, with each part calculated differently. That would require changes I'm not capable of, ie one attack deals two or more types of damage one after another.