大佬请问一下
const _Game_Action_apply = Game_Action.prototype.apply; Game_Action.prototype.apply = function(target) { _Game_Action_apply.call(this, target); if (subject.elementRate(13) >= 1.5 && this.item().id === 1) { const action = new Game_Action(subject); action.setSkill(4); subject.setAction(subject._actions.length, action); } }
const _Game_Action_apply = Game_Action.prototype.apply;
Game_Action.prototype.apply = function(target) {
_Game_Action_apply.call(this, target);
if (subject.elementRate(13) >= 1.5 && this.item().id === 1) {
const action = new Game_Action(subject);
action.setSkill(4);
subject.setAction(subject._actions.length, action);
}
}
我这段代码为什么敌人触发只会攻击 |