public override void UpdateStatus(FightStatus fightStatus) { //IL_0046: Unknown result type (might be due to invalid IL or missing references) if (fightStatus.TryGetEntity(ownerId, out PlayerStatus entityStatus)) { Gender gender = (Gender)this.gender; if (RuntimeData.weaponDefinitions.TryGetValue(entityDefId, out WeaponDefinition value)) { HeroStatus heroStatus = HeroStatus.Create(concernedEntity, value, level, gender, entityStatus, (Vector2Int)refCoord); fightStatus.AddEntity(heroStatus); entityStatus.heroStatus = heroStatus; AbstractPlayerUIRework view = entityStatus.view; if (null != view) { view.SetHeroIllustration(value, gender); view.SetHeroStartLifePoints(heroStatus.baseLife, entityStatus.playerType); if (RuntimeData.reserveDefinitions.TryGetValue(value.god, out ReserveDefinition value2)) { view.SetupReserve(heroStatus, value2); } else { Log.Error(FightEventErrors.DefinitionNotFound <ReserveDefinition>((int)value.god), 45, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Fight\\Events\\HeroAddedEvent.cs"); } } } else { Log.Error(FightEventErrors.EntityCreationFailed <HeroStatus, WeaponDefinition>(concernedEntity, entityDefId), 51, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Fight\\Events\\HeroAddedEvent.cs"); } } else { Log.Error(FightEventErrors.PlayerNotFound(ownerId), 56, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Fight\\Events\\HeroAddedEvent.cs"); } FightLogicExecutor.FireUpdateStatus(fightStatus.fightId, EventCategory.EntityAddedOrRemoved); }