<?php
/*
  ◆夜行鬼 (wise_ogre)
  ○仕様
  ・勝利：生存 + 共有者系・人狼系・妖狐系全滅
*/
RoleManager::LoadFile('ogre');
class Role_wise_ogre extends Role_ogre {
  public $mix_in = 'common';
  public $resist_rate  = 40;
  public $reduce_rate  =  2;
  public $reflect_rate = 40;

  public function Win($winner) {
    if ($this->IsDead()) return false;
    foreach (DB::$USER->rows as $user) {
      if ($user->IsLive() && $user->IsMainGroup('common', 'wolf', 'fox')) return false;
    }
    return true;
  }
}
