public static void HandleGameMapNoMovementMessage(Bot bot, GameMapNoMovementMessage message) { // always check, the client can send bad things :) if (!bot.Character.IsMoving()) return; bot.Character.NotifyStopMoving(true, true); }
public static void HandleGameMapNoMovementMessage(Bot bot, GameMapNoMovementMessage message) { if (bot.Character != null) if (bot.Character.IsFighting()) bot.Character.Fighter.Update(message); else bot.Character.Update(message); }
internal void Update(GameMapNoMovementMessage message) { if (IsMoving()) NotifyStopMoving(true, true); }