如题,关键点在于受到伤害导致状态A被解除,这才附加状态B
状态A自然解除时并不会附加
状态B是附加给被攻击者的
脚本盲,恳请各位大佬解答作者: 天浩 时间: 2018-10-23 08:34
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