• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン1963 (tree)
日時2017-04-15 19:08:49
作者umethyl

ログメッセージ

WolfEatResist()

変更サマリ

差分

--- trunk/include/role/awake_wizard.php (revision 1962)
+++ trunk/include/role/awake_wizard.php (revision 1963)
@@ -31,13 +31,14 @@
3131 }
3232 }
3333
34- public function IsMageFailed() {
35- return true;
36- }
37-
3834 public function WolfEatResist() {
3935 if (! $this->IsActorActive()) return false;
36+
4037 $this->GetActor()->LostAbility();
4138 return true;
4239 }
40+
41+ public function IsMageFailed() {
42+ return true;
43+ }
4344 }
--- trunk/include/role/fend_guard.php (revision 1962)
+++ trunk/include/role/fend_guard.php (revision 1963)
@@ -8,6 +8,7 @@
88 class Role_fend_guard extends Role_guard {
99 public function WolfEatResist() {
1010 if (! $this->IsActorActive()) return false;
11+
1112 $this->GetActor()->LostAbility();
1213 return true;
1314 }
--- trunk/include/role/protected.php (revision 1962)
+++ trunk/include/role/protected.php (revision 1963)
@@ -12,6 +12,7 @@
1212
1313 public function WolfEatResist() {
1414 if ($this->IgnoreSacrifice()) return false;
15+
1516 $stack = array();
1617 foreach ($this->GetActor()->GetPartner($this->role) as $id) {
1718 if (DB::$USER->ByID($id)->IsLive(true)) {
@@ -43,6 +44,7 @@
4344 private function Sacrifice(array $stack) {
4445 //Text::p($stack, sprintf('◆Sacrifice [%s]', $this->role));
4546 if (count($stack) < 1) return false;
47+
4648 $id = Lottery::Get($stack);
4749 DB::$USER->Kill($id, DeadReason::SACRIFICE);
4850 $this->AddStack($id, 'sacrifice');
--- trunk/include/role/doom_vampire.php (revision 1962)
+++ trunk/include/role/doom_vampire.php (revision 1963)
@@ -8,6 +8,10 @@
88 */
99 RoleLoader::LoadFile('vampire');
1010 class Role_doom_vampire extends Role_vampire {
11+ public function WolfEatResist() {
12+ return true;
13+ }
14+
1115 protected function InfectVampire(User $user) {
1216 return;
1317 }
@@ -15,8 +19,4 @@
1519 protected function InfectAction(User $user) {
1620 if (! RoleUser::IsAvoidLovers($user, true)) $user->AddDoom(4);
1721 }
18-
19- public function WolfEatResist() {
20- return true;
21- }
2222 }
旧リポジトリブラウザで表示