#技能盗取
if user.is_a?(Game_Actor) && skill.id == 81 #判定使用者为actor,偷窃技能的技能id为81
@enemy_id = self.id #获取敌方id
@steal_skill_id = steal_skill_id(@enemy_id) #获取可以盗取的敌人技能
@user_skill_learn = user.skill_learn?(@steal_skill_id) #判定是否已习得技能
@skill_name = $data_skills[@steal_skill_id].name #获取技能名称
if rand() < 0.5 && @user_skill_learn == false && @steal_skill_id != nil #盗取成功率&是否已学得该技能&可偷技能不为空
user.learn_skill(@steal_skill_id) #习得技能
self.damage = @skill_name + "skill stolen" #成功显示
else
self.damage = "Miss" #不成功显示
end
end
#技能盗取
if user.is_a?(Game_Actor) && skill.id == 81 #判定使用者为actor,偷窃技能的技能id为81
@enemy_id = self.id #获取敌方id
@steal_skill_id = steal_skill_id(@enemy_id) #获取可以盗取的敌人技能
@user_skill_learn = user.skill_learn?(@steal_skill_id) #判定是否已习得技能
@skill_name = $data_skills[@steal_skill_id].name #获取技能名称
if rand() < 0.5 && @user_skill_learn == false && @steal_skill_id != nil #盗取成功率&是否已学得该技能&可偷技能不为空
user.learn_skill(@steal_skill_id) #习得技能
self.damage = @skill_name + "skill stolen" #成功显示
else
self.damage = "Miss" #不成功显示
end
end