Trait Attack times

I was wondering if there is a way to apply "Attack times +" trait to physical skills. As far as I know, this can only apply to normal attacks.


I've tried adding "Normal attack" state to physical skills, but couldn't manage to make it hit more times.


Capture.PNG
Bump, also looking for this feature. Or at least how to properly use "attackTimesAdd" in a notetag. These are the only references to attack times i've found:


Game_BattlerBase.prototype.attackTimesAdd = function() {
    return Math.max(this.traitsSumAll(Game_BattlerBase.TRAIT_ATTACK_TIMES), 0);
};


and


Game_Action.prototype.numRepeats = function() {
    var repeats = this.item().repeats;
    if (this.isAttack()) {
        repeats += this.subject().attackTimesAdd();
    }
    return Math.floor(repeats);
};


EDIT: Think I've found a solution! Tho, it might make other skills not work as intended but anyways...on line 1293 of rpg_objects.js I changed it to:


    if (this.isAttack() || this.isPhysical) {
...and viola it works!
You, sir, are amazing. I was looking for an answer to this for hours but kept getting search results on what must've been old game scripts. Something about an editor and game_object line 90? I don't know but this one actually worked.

Original thread: https://forums.rpgmakerweb.com/threads/trait-attack-times.56310/