• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Révision2048 (tree)
l'heure2017-08-23 21:33:37
Auteurumethyl

Message de Log

Role::IgnoreVoteNightLive()

Change Summary

Modification

--- trunk/include/role/role_class.php (revision 2047)
+++ trunk/include/role/role_class.php (revision 2048)
@@ -778,7 +778,7 @@
778778
779779 //投票スキップ判定 (夜)
780780 final public function IgnoreVoteNight(User $user, $live) {
781- if (! $this->IsVoteCheckboxLive($live)) {
781+ if ($this->IgnoreVoteNightLive($live)) {
782782 return $live ? VoteRoleMessage::TARGET_ALIVE : VoteRoleMessage::TARGET_DEAD;
783783 } elseif ($this->IgnoreVoteCheckboxSelf() && $this->IsActor($user)) {
784784 return VoteRoleMessage::TARGET_MYSELF;
@@ -789,6 +789,11 @@
789789 }
790790 }
791791
792+ //投票スキップ生死判定
793+ protected function IgnoreVoteNightLive($live) {
794+ return ! $this->IsVoteCheckboxLive($live);
795+ }
796+
792797 //投票スキップ追加判定
793798 protected function IgnoreVoteNightFilter(User $user) {
794799 return null;
--- trunk/include/role/step_wolf.php (revision 2047)
+++ trunk/include/role/step_wolf.php (revision 2048)
@@ -79,4 +79,8 @@
7979 $this->SetStack(ArrayFilter::Concat($handle_stack), 'target_handle');
8080 return null;
8181 }
82+
83+ protected function IgnoreVoteNightLive($live) {
84+ return ! $live;
85+ }
8286 }
Afficher sur ancien navigateur de dépôt.