Exemplo n.º 1
0
 public void LaunchSpell(int spellId, int cellId)
 {
     lock (CheckLock)
     {
         /*foreach (var fighter in Fighters)
          *  if (fighter.CellId == cellId)
          *  {
          *      Account.Network.SendToServer(
          *          new GameActionFightCastOnTargetRequestMessage((ushort)spellId, fighter.Id));
          *      return;
          *  }*/
         var spell = new SpellCast(Account, spellId, cellId);
         spell.SpellCasted += (sender, e) =>
         {
             Logger.Default.Log($"Lancement du sort {e.SpellId} {e.Sucess}");
             //LaunchSpell(spellId, cellId);
         };
         spell.PerformCast();
     }
     //Account.Network.SendToServer(new GameActionFightCastRequestMessage((ushort)spellId, (short)cellId));
 }