Beispiel #1
0
 protected void RemoveFighter(double Id)
 {
     lock (CheckLock)
     {
         Fighters.Remove(Fighters.Find(f => f.Id == Id));
         Monsters.Remove(Monsters.Find(m => m.Id == Id));
     }
 }
Beispiel #2
0
 private void HandleGameActionFightDeathMessage(IAccount account, GameActionFightDeathMessage message)
 {
     lock (CheckLock)
     {
         if (Fighter.Id == message.TargetId)
         {
             Logger.Default.Log("Bot mort");
             Fighters.Remove(Fighters.Find(f => f.Id == message.TargetId));
         }
         if (Monsters.Exists(m => m.Id == message.TargetId))
         {
             Logger.Default.Log($"Monstre[{message.TargetId}] est mort");
             Monsters.Remove(Monsters.Find(m => m.Id == message.TargetId));
             Logger.Default.Log($"Signalig FighterDiedAutoReset", LogMessageType.Divers);
             FighterDiedAutoReset.Set();
         }
     }
 }
Beispiel #3
0
 protected void RemoveFighter(double Id)
 {
     Fighters.Remove(Fighters.Find(f => f.Id == Id));
     Monsters.Remove(Monsters.Find(m => m.Id == Id));
     Companions.Remove(Companions.Find(c => c.Id == Id));
 }