Beispiel #1
0
        public void StopPvp()
        {
            if (!IsActive)
            {
                return;
            }
            IsActive = false;
            if (Losser == null)
            {
                Losser = FirstCharacter;
            }
            FirstCharacter.EnemyCharacters.Remove(SecondCharacter);
            SecondCharacter.EnemyCharacters.Remove(FirstCharacter);
            FirstCharacter.CheckEnemysCount();
            SecondCharacter.CheckEnemysCount();
            Asda2PvpHandler.SendDuelEndedResponse(Winner, Losser);

            Asda2TitleChecker.OnWinDuel(Winner);

            FirstCharacter.Asda2Duel            = null;
            SecondCharacter.Asda2Duel           = null;
            FirstCharacter.Asda2DuelingOponent  = null;
            SecondCharacter.Asda2DuelingOponent = null;
            FirstCharacter  = null;
            SecondCharacter = null;
        }
Beispiel #2
0
 public void StopPvp()
 {
     if (!this.IsActive)
     {
         return;
     }
     this.IsActive = false;
     if (this.Losser == null)
     {
         this.Losser = this.FirstCharacter;
     }
     this.FirstCharacter.EnemyCharacters.Remove(this.SecondCharacter);
     this.SecondCharacter.EnemyCharacters.Remove(this.FirstCharacter);
     this.FirstCharacter.CheckEnemysCount();
     this.SecondCharacter.CheckEnemysCount();
     Asda2PvpHandler.SendDuelEndedResponse(this.Winner, this.Losser);
     this.FirstCharacter.Asda2Duel            = (Asda2Pvp)null;
     this.SecondCharacter.Asda2Duel           = (Asda2Pvp)null;
     this.FirstCharacter.Asda2DuelingOponent  = (Character)null;
     this.SecondCharacter.Asda2DuelingOponent = (Character)null;
     this.FirstCharacter  = (Character)null;
     this.SecondCharacter = (Character)null;
 }