Call a Common Event Before and/or After a Player Attacks

Battle Engine Melody has an option to give weapons to enemies. But when enemies attack with those weapons, weapons does not trigger their effects. I've tried this on a plain project with only BEM and this script. It works fine for actors but not enemies. Is that supposed to happen or is something wrong with my configuration?

Original thread: https://forums.rpgmakerweb.com/threads/call-a-common-event-before-and-or-after-a-player-attacks.603/