Give status/state to attacker if they hit an enemy weakness with weapon

I wanna have the player be inflicted with a status/stater when they hit an enemy weakness. I've gotten this to work on skills through adding "if b.element_rate(elementID) > 1.0; a.add_state(stateID); end;" to damage calc.

But I also want to do this with weapons as well, since they have elements tied to them. But since weapons don't have damage calc: I've been stumped and decided to ask for help here.

Original thread: https://forums.rpgmakerweb.com/threads/give-status-state-to-attacker-if-they-hit-an-enemy-weakness-with-weapon.164175/