Probably that is all you have to do so you can change the line ActionAttack.Nat20_Original_onAttack(rSource, rTarget, rRoll) back to how it was.
Thanks! That's a great starting point for the magic ammo automation I was planning. I hadn't even thought about using Advanced Effects.