public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } //account.Fight.PerformAutoTimeoutFight(100); if (account.Fight != null) { account.Fight.FightTurn(); } }
public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } account.FightData.TurnStarted(); if (account.Fight != null) { account.Fight.flag = 1; account.Fight.ExecutePlan(); } else { account.Log(new ErrorTextInformation("Aucune IA, le bot ne peut pas combattre !"), 0); } }