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

  protected function IsHunt(User $user) { return parent::IsHunt($user) || $user->IsFox(); }
}
