# 会心一击修正 if rand(100) < 4 * attacker.dex / self.agi self.damage *= 2 self.critical = true end
if attacker.skill_learn?(100) attacker.sp += 2 end