赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 2 |
经验 | 0 |
最后登录 | 2024-4-16 |
在线时间 | 15 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 173
- 在线时间
- 15 小时
- 注册时间
- 2019-11-2
- 帖子
- 14
|
大神,关于这个问题我想请教一下,我试过加上&& !this.isDying()代码后出现undefined报错,另外我还想加上掩护的在异常状态下也不能就行掩护动作,掩护技能的几率为75%,请问有什么办法吗?这是目前我修改的代码;
BattleManager.checkSubstitute = function(target) {
return target.isDying() && !this._action.isCertainHit() && this._action.isDamage() && !this.isDying() && !(Math.randomInt(3) === 0);
}; |
|