Referencing AttackTimes+?

Hi, I'm looking for the correct syntax for using AttackTimes+ in a conditional statement. Basically I want to say "if user's AttackTimes+ = 3, then stuff, else stuff". However, I don't know the correct js term for AttackTimes+. It would be akin to if (user.atk >= 3) or something, except I'm trying to reference AttackTimes+ instead.
user.attackTimesAdd()
You can use the following :

Code:
a.attackTimesAdd()

EDIT: Dah, did not notice Trihan until I posted.
Thanks guys! I thought that was it...idk why it doesn't work though... Must be something else wrong w/ my code then.
If you're using Battle Core it changes how that trait works.
If you're using Battle Core it changes how that trait works.
How so? I just tried making a dummy passive state to see if it was working, and the passive state didn't show up after equipping a weapon that added AttackTimes+.
JavaScript:
<Custom Passive Condition>
if (user.attackTimesAdd() >= 2) {
  condition = true
} else {
  condition = false
}
</Custom Passive Condition>
I also tried that same thing w/ a.attackTimesAdd() and also tried changing "2" to "1". In all cases, the state didn't show. How would I access the unit's AttackTimes+ value if I'm using Yanfly's BattleCore?

Edit: I just did a search through YEP_BattleEngineCore.js for "attackTimes" and got no results...

Also, I know that this section of code rpg_objects.js is in effect since I've edited it to also affect physical attacks which works just fine.
JavaScript:
Game_Action.prototype.numRepeats = function() {
    var repeats = this.item().repeats;
    if (this.isAttack() || this.isPhysical()) {
        repeats += this.subject().attackTimesAdd();
    }
    return Math.floor(repeats);
};
Edit2: I also just tried both subject.attackTimesAdd() as well as this.subject.attackTimesAdd() to no avail...
I can't remember exactly, I just remembered one of Yanfly's plugins changes how extra attacks work because I was trying to do something with it and kept only having one action.
That's weird...you sure it's doing something to Attack Times+ and not Action Times+? Cuz I see Action Times+ in the plugin, but not Attack Times+...
Does the passive state show up when you just put :

Code:
<Custom Passive Condition>
condition = true
</Custom Passive Condition>
Sorry, yeah, I was thinking of Action Times+.
Does the passive state show up when you just put :

Code:
<Custom Passive Condition>
condition = true
</Custom Passive Condition>
Yes, I just double-checked, it does show up.

Edit: Sigh, I'll just do this the long way I guess... by using conditional states to check if the actor's weapon slots are filled and also requiring certain weapon types to not be equipped. Such an inelegant solution, but oh wells, it's functional at least.
Hmm, well, I am using the following in a new project :

Code:
<Custom Passive Condition>
if (user.attackTimesAdd() >= 2) {
  condition = true;
} else {
  condition = false;
}
</Custom Passive Condition>

And the state does show up.
Hmm, well, I am using the following in a new project :

Code:
<Custom Passive Condition>
if (user.attackTimesAdd() >= 2) {
  condition = true;
} else {
  condition = false;
}
</Custom Passive Condition>

And the state does show up.
You're right, I just tried it on a new project and it does show up for me as well! Damn, I gotta figure out what's wrong w/ my project now...
Do you have any other plugins that might tamper with states?
Ok, I copy-pasted the actor I was using and set that actor as the one you start the game with, and now it works!! I have no idea where the anomaly was, but I'm so happy rn regardless lol. Thank you, guys!

Original thread: https://forums.rpgmakerweb.com/threads/referencing-attacktimes.124597/