Role::IgnoreVoteNightLive()
@@ -778,7 +778,7 @@ | ||
778 | 778 | |
779 | 779 | //投票スキップ判定 (夜) |
780 | 780 | final public function IgnoreVoteNight(User $user, $live) { |
781 | - if (! $this->IsVoteCheckboxLive($live)) { | |
781 | + if ($this->IgnoreVoteNightLive($live)) { | |
782 | 782 | return $live ? VoteRoleMessage::TARGET_ALIVE : VoteRoleMessage::TARGET_DEAD; |
783 | 783 | } elseif ($this->IgnoreVoteCheckboxSelf() && $this->IsActor($user)) { |
784 | 784 | return VoteRoleMessage::TARGET_MYSELF; |
@@ -789,6 +789,11 @@ | ||
789 | 789 | } |
790 | 790 | } |
791 | 791 | |
792 | + //投票スキップ生死判定 | |
793 | + protected function IgnoreVoteNightLive($live) { | |
794 | + return ! $this->IsVoteCheckboxLive($live); | |
795 | + } | |
796 | + | |
792 | 797 | //投票スキップ追加判定 |
793 | 798 | protected function IgnoreVoteNightFilter(User $user) { |
794 | 799 | return null; |
@@ -79,4 +79,8 @@ | ||
79 | 79 | $this->SetStack(ArrayFilter::Concat($handle_stack), 'target_handle'); |
80 | 80 | return null; |
81 | 81 | } |
82 | + | |
83 | + protected function IgnoreVoteNightLive($live) { | |
84 | + return ! $live; | |
85 | + } | |
82 | 86 | } |