class Game_Battler
STATES_NO_DUP_MESSAGE = [2] #中毒
#在这里写不需要重复显示信息的状态编号
end
class Game_Battler
#--------------------------------------------------------------------------
# ● 附加状态
#--------------------------------------------------------------------------
def add_state(state_id)
@first_add ||= []
if state_addable?(state_id)
unless state?(state_id)
add_new_state(state_id)
@first_add[state_id] = true
end
reset_state_counts(state_id)
#puts "@first_add[#{state_id}]=#{@first_add[state_id]}"
#puts "STATES_NO_DUP_MESSAGE.include?(#{state_id})=#{STATES_NO_DUP_MESSAGE.include?(state_id)}"
return if !@first_add[state_id] && STATES_NO_DUP_MESSAGE.include?(state_id)
#puts "Log pushed"
@first_add[state_id] = false
@result.added_states.push(state_id).uniq!
end
end
end