Exemple #1
0
 private void CheckAtackStateWithCharacter(Character visibleChr)
 {
     if (MayAttack(visibleChr))
     {
         EnemyCharacters.Add(visibleChr);
         if (IsAsda2BattlegroundInProgress)
         {
             GlobalHandler.SendFightingModeChangedOnWarResponse(Client, visibleChr.SessionId, (int)visibleChr.AccId, visibleChr.Asda2FactionId);
         }
         else
         {
             GlobalHandler.SendFightingModeChangedResponse(Client, SessionId, (int)AccId, visibleChr.SessionId);
         }
     }
     else
     {
         if (EnemyCharacters.Contains(visibleChr))
         {
             EnemyCharacters.Remove(visibleChr);
             CheckEnemysCount();
         }
     }
 }