コード例 #1
0
        public static void Kill(ArenaClient attacker, ArenaClient target)
        {
            if (Phase != TOPhases.Battle)
            {
                return;
            }

            target.TODeaths++;
            if (attacker.Team == target.Team)
            {
                attacker.TOScore--;
                attacker.Team.Score--;
                attacker.SendPointsMessage(-1);
            }
            else
            {
                attacker.TOScore++;
                attacker.TOKills++;
                attacker.Team.Score++;
                attacker.SendPointsMessage(+1);
                if (attacker.Team.Score >= activeTODef.ScoreToWin)
                {
                    PhaseFinish();
                }
            }
        }