I was able to get it down to physical attacks by going to rmmz_managers.js and changing:
to
However, I'm trying to further specify that the incoming attack towards the low HP ally must also be single target, AoEs should hit everyone even if substitute is active. Appreciate any help with this.
Code:
BattleManager.checkSubstitute = function(target) {
return target.isDying() && !this._action.isCertainHit();
};
to
Code:
BattleManager.checkSubstitute = function(target) {
return target.isDying() && !this._action.isCertainHit() && !this._action.isMagical();
};
However, I'm trying to further specify that the incoming attack towards the low HP ally must also be single target, AoEs should hit everyone even if substitute is active. Appreciate any help with this.