Example #1
0
        public override void DoAction(Player player, RoleAction action)
        {
            if (action.GetTarget() < 0)
            {
                checks.Remove(player);
            }
            else
            {
                Player target = GetAllPlayers()[action.GetTarget()];

                if (!target.IsAlive())
                {
                    return;
                }

                checks.Add(player, action.GetTarget());
            }
        }
Example #2
0
 /// <summary>
 /// </summary>
 /// <param name="player"></param>
 /// <param name="ability"></param>
 /// <param name="action"></param>
 public abstract void DoAction(Player player, RoleAction action);