class Game_Actor
alias add_new_state_no_revive add_new_state
def add_new_state(state_id)
# ↓ 仅对3,4,5号角色生效
if [3,4,5].include?(id) && state_id == death_state_id && !@died_once
revive
@died_once = true
refresh
else
add_new_state_no_revive(state_id)
end
end
end
class Game_Actor
alias add_new_state_no_revive add_new_state
def add_new_state(state_id)
# ↓ 仅对3,4,5号角色生效
if [3,4,5].include?(id) && state_id == death_state_id && !@died_once
revive
@died_once = true
refresh
else
add_new_state_no_revive(state_id)
end
end
end