UserMode::LOST
@@ -12,4 +12,5 @@ | ||
12 | 12 | const DEAD = 'dead'; |
13 | 13 | const SUICIDE = 'suicide'; |
14 | 14 | const REVIVE = 'revive'; |
15 | + const LOST = 'lost'; | |
15 | 16 | } |
@@ -6,7 +6,6 @@ | ||
6 | 6 | public $role; |
7 | 7 | public $main_role; |
8 | 8 | public $live; |
9 | - public $lost_flag = false; | |
10 | 9 | protected $role_list = array(); |
11 | 10 | protected $partner = array(); |
12 | 11 | protected $updated = array(); |
@@ -307,7 +306,7 @@ | ||
307 | 306 | //能力喪失判定 |
308 | 307 | public function IsActive($role = null) { |
309 | 308 | return (is_null($role) || $this->IsRole($role)) && |
310 | - ! $this->lost_flag && ! $this->IsRole('lost_ability'); | |
309 | + ! $this->IsOn(UserMode::LOST) && ! $this->IsRole('lost_ability'); | |
311 | 310 | } |
312 | 311 | |
313 | 312 | //期間限定表示役職 |
@@ -553,7 +552,7 @@ | ||
553 | 552 | //能力喪失処理 |
554 | 553 | public function LostAbility() { |
555 | 554 | $this->AddRole('lost_ability'); |
556 | - $this->lost_flag = true; | |
555 | + $this->Flag()->On(UserMode::LOST); | |
557 | 556 | } |
558 | 557 | |
559 | 558 | //憑依解除処理 |