<?php
/*
  ◆猟師 (hunter_guard)
  ○仕様
  ・護衛処理：死亡 (人狼襲撃限定)
  ・狩り：通常 + 妖狐陣営
*/
RoleManager::LoadFile('guard');
class Role_hunter_guard extends Role_guard {
  public function GuardAction() {
    if ($this->GetVoter()->IsSame($this->GetWolfVoter())) {
      DB::$USER->Kill($this->GetID(), 'WOLF_KILLED');
    }
  }

  protected function IsAddHunt(User $user) {
    return $user->IsFox();
  }
}
