[SOLVED] evalDamageFormula(), Custom Parameters, and MOG_ChronoEngine.js

I have an item that, when used, immediately kills enemies:
item_damage.PNG


I want the item to be ineffective against "boss" enemies. So I modified Game_Action.prototype.evalDamageFormula():
evalDamageFormula.png


I was hoping that my edit would allow me to add a "+ boss" to my original formula, and have the item be ineffective towards enemy entries in my database with a <boss> tag in their notes:
item_damage_mod.PNG


Here is where I have run into a problem, though- the player is able to deal damage to enemies but none of the enemies are able to deal damage back to the player.

The enemies are not using the item in question. I am using ABS mode in Chrono Engine and they are assigned a totally different skill.

I checked to see if MOG_ChronoEngine.js had any instances of evalDamageFormula() that I might be inevitably overwriting (since I am not aliasing it in my edit), but it doesn't. MOG_ChronoEngine.js does have a function called evalDamageFormulaCN(), but it doesn't seem linked to the original evalDamageFormula():
evalDamageFormulaCN.png

So I can't really see how editing one would affect the other.

Does anybody know what I am doing wrong? Is there another way to accomplish what I am trying to achieve?

Thanks for your help!
I'm still not sure why the problem was happening, but a solution came to me in my sleep:
evalDamageFormula_edit.png


So it works 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-evaldamageformula-custom-parameters-and-mog_chronoengine-js.123251/