- class Game_Battler 
-   #-------------------------------------------------------------------------- 
-   # ● 更改 HP 
-   #     hp : 新的 HP 
-   #-------------------------------------------------------------------------- 
-   def hp=(hp) 
-     return if state?(10) && hp >= @hp # 拥有状态10 ,阻止回复 
-     @hp = [[hp, maxhp].min, 0].max 
-     if @hp == 0 and not state?(1) and not @immortal 
-       add_state(1)                # 附加「无法战斗」状态(1号状态) 
-       @added_states.push(1) 
-     elsif @hp > 0 and state?(1) 
-       remove_state(1)             # 移除「无法战斗」状态(1号状态) 
-       @removed_states.push(1) 
-     end 
-   end 
- end 
- class Game_Battler 
 
-   #-------------------------------------------------------------------------- 
 
-   # ● 更改 HP 
 
-   #     hp : 新的 HP 
 
-   #-------------------------------------------------------------------------- 
 
-   def hp=(hp) 
 
-     return if state?(10) && hp >= @hp # 拥有状态10 ,阻止回复 
 
-     @hp = [[hp, maxhp].min, 0].max 
 
-     if @hp == 0 and not state?(1) and not @immortal 
 
-       add_state(1)                # 附加「无法战斗」状态(1号状态) 
 
-       @added_states.push(1) 
 
-     elsif @hp > 0 and state?(1) 
 
-       remove_state(1)             # 移除「无法战斗」状态(1号状态) 
 
-       @removed_states.push(1) 
 
-     end 
 
-   end 
 
- end