public void Update(GameActionFightLifePointsGainMessage message) { GetFighter(message.TargetId)?.Update(message); // Trigger update event if its our character if (message.TargetId == PlayedFighter.ContextualId) { _account.Game.Character.Stats.MaxLifePoints = (uint)PlayedFighter?.MaxLifePoints; _account.Game.Character.Stats.LifePoints = (uint)PlayedFighter?.LifePoints; FighterStatsUpdated?.Invoke(); } }
public void Update(FighterStatsListMessage message) { PlayedFighter?.Update(message.Stats); if (PlayedFighter != null) { _account.Game.Character.Stats.MaxLifePoints = (uint)PlayedFighter?.MaxLifePoints; _account.Game.Character.Stats.LifePoints = (uint)PlayedFighter?.LifePoints; } FighterStatsUpdated?.Invoke(); }