class Scene_Battle
#--------------------------------------------------------------------------
# ● 发动技能/物品
#--------------------------------------------------------------------------
def invoke_item(target, item)
if rand < target.item_cnt(@subject, item)
apply_item_effects(apply_substitute(target, item), 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(apply_substitute(target, item), 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