class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# ● 受到伤害时解除状态
#--------------------------------------------------------------------------
def remove_states_by_damage
states.each do |state|
if state.remove_by_damage && rand(100) < state.chance_by_damage
add_state(3) if state.id = 6 # 解除的状态为6号状态时,添加3号状态
remove_state(state.id)
end
end
end
end