class Scene_Battle def invoke_item(target, item) if rand < target.item_cnt(@subject, item) apply_item_effects(target, item) # 加了这行(未测试) invoke_counter_attack(target, item) elsif rand < target.item_mrf(@subject, item) invoke_magic_reflection(target, item) else apply_item_effects(apply_substitute(target, item), item) end @subject.last_target_index = target.index end end
class Scene_Battle
def invoke_item(target, item)
if rand < target.item_cnt(@subject, item)
apply_item_effects(target, item) # 加了这行(未测试)
invoke_counter_attack(target, item)
elsif rand < target.item_mrf(@subject, item)
invoke_magic_reflection(target, item)
else
apply_item_effects(apply_substitute(target, item), item)
end
@subject.last_target_index = target.index
end
end
|