public void Update(LifePointsRegenEndMessage message) { Stats.Health = message.lifePoints; // TODO : unfortunately, we never receive a message saying we have full health. // So have to consider regen rate and compute current health based on it. }
public static void HandleLifePointsRegenEndMessage(Bot bot, LifePointsRegenEndMessage message) { bot.Character.RegenRate = 0; bot.Character.RegenStartTime = null; bot.Character.Update(message); }