加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
想实现只有敌人获得了第 27 号状态 才能使用 备注里有<测试>的技能
自己琢磨了好几天编写了一个 用不成啊
求大神帮我看看
class Game_Battler alias hjineng001_skill_conditions_met? skill_conditions_met? def skill_conditions_met?(skill) if skill.note.include?("<测试>") && enemy.state?(!27) false else hjineng001_skill_conditions_met?(skill) end end end
class Game_Battler
alias hjineng001_skill_conditions_met? skill_conditions_met?
def skill_conditions_met?(skill)
if skill.note.include?("<测试>") && enemy.state?(!27)
false
else
hjineng001_skill_conditions_met?(skill)
end
end
end
|