I wasn't sure where to put this, so I hope it's in the right spot.
I'm using a script that allows weapons to have their own custom damage formulas (Kread-EX's "Custom Weapon Formulas"), and a script that allows me to make equipment give passive states (Yanfly's "Yanfly Engine Ace - Passive States"). I made it so equipping a quiver (a type of shield) gives the invisible state 75 (I made it visible for testing though). I wanted to make it so that if state 75 is inflicted, Bows will do more damage, (this way if the quiver is equipped, it does more damage). I used this formula for the Bow:
a.states.include?(75) ? (a.param_plus(2) + a.agi / 2) * 2 : a.atk * 2 - b.def * 2
I noticed that whether the state is inflicted or not, it'll always do the false result, I even used this formula to test it out:
a.states.include?(75) ? 1000 : 10
and it would always give around 10. So, is "a.states.include?(#)" the wrong way to do this? How do I detect whether a state is inflicted, and if you can make a condition that ask whether an armor type is equipped (not an equipment type), can you tell me how to do that?