xiaolang96163 发表于 2014-7-21 17:43
换完出现错误 undefined method "user" for #
想到可能可以用force_action(skill_id, target_index), ...
class Game_Battler < Game_BattlerBase
alias make_damage_value2 make_damage_value
#计算伤害
def make_damage_value(user, item)
make_damage_value2(user, item)
if item.is_a?(RPG::Skill)
case item.id
when 900 #设置20号技能
if self.state?(29) && self.state?(30) && self.state?(31) #3种状态