I'm updating the substitute function in rpg_manager and I only want the substitute to activate if a skill does damage (i.e if the element is not 0. Not for status skills like sleep and silence). How do I the active skills element?
BattleManager.checkSubstitute = function(target) {
return target.isStateAffected(29) && !this._action.isCertainHit() && !this._action.isForAll();
//return target.isDying() && !this._action.isCertainHit();
};
BattleManager.checkSubstitute = function(target) {
return target.isStateAffected(29) && !this._action.isCertainHit() && !this._action.isForAll();
//return target.isDying() && !this._action.isCertainHit();
};