public override IEnumerator UpdateView(FightStatus fightStatus) { if (fightStatus.TryGetEntity(concernedEntity, out PlayerStatus entityStatus)) { AbstractPlayerUIRework playerUI = entityStatus.view; if (null != playerUI) { SpellCostModification spellCostModifier = new SpellCostModification(modifierId, modificationValue, spellFiltersJson); yield return(playerUI.AddSpellCostModifier(spellCostModifier)); yield return(playerUI.UpdateAvailableActions(recomputeSpellCosts: true)); } } else { Log.Error(FightEventErrors.PlayerNotFound(concernedEntity), 48, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Fight\\Events\\SpellCostModifierAddedEvent.cs"); } FightLogicExecutor.FireUpdateView(fightStatus.fightId, EventCategory.SpellCostModification); }