• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2564 (tree)
Time2019-12-31 21:26:20
Authorumethyl

Log Message

Role_trick_mania::TrickCopy()

Change Summary

Incremental Difference

--- trunk/include/role/trick_mania.php (revision 2563)
+++ trunk/include/role/trick_mania.php (revision 2564)
@@ -16,13 +16,15 @@
1616
1717 //奇術処理
1818 final protected function TrickCopy(User $user, $role) {
19- //スキップ判定 (コピー結果村人, 身代わり君, 特定役職, 投票実施者)
19+ //スキップ判定 (コピー結果村人/身代わり君/特定役職/投票実施者)
2020 if ($role == 'human' || $user->IsDummyBoy() || $user->IsRole('widow_priest', 'revive_priest')) {
2121 return;
2222 }
2323
2424 foreach (RoleManager::GetVoteData() as $stack) { //投票実施者判定
25- if (isset($stack[$user->id])) return;
25+ if (isset($stack[$user->id])) {
26+ return;
27+ }
2628 }
2729
2830 $user->ReplaceRole($role, $user->DistinguishRoleGroup());
Show on old repository browser