<?php
/*
  ◆蓬莱人形 (doom_doll)
  ○仕様
  ・処刑：死の宣告 (人形以外)
*/
RoleManager::LoadFile('doll');
class Role_doom_doll extends Role_doll {
  public function VoteKillCounter(array $list) {
    $stack = array();
    foreach ($list as $uname) {
      $user = DB::$USER->ByRealUname($uname);
      if (! $user->IsAvoid() && ! $this->IsDoll($user)) $stack[] = $user->id;
    }
    if (count($stack) > 0) DB::$USER->ByID(Lottery::Get($stack))->AddDoom(2);
  }
}
