public void Trigger(AbilityActivatedEvent abilityEvent) { var pokemon = GameController.Instance.GetCardRendererById(abilityEvent.PokemonId); pokemon.SpawnAbilityEffect(); StartCoroutine(AbilityWaitRoutine()); }
public void Receive(AbilityActivatedEvent e) { if (e.Ability.OwningCard.Is().Planeswalker) { _planeswalkerActivations.Add(e.Ability.OwningCard); } }
public void Receive(AbilityActivatedEvent message) { // do not show repeated activation of same ability if (Game.Stack.IsEmpty || message.Ability != Game.Stack.TopSpell.Source) { ShowActivationDialog(message); } MessageLog.AddMessage(message.ToString()); }
/// <summary> /// Indicate tha the ability is currently active /// </summary> /// <param name="e"></param> private void OnAbilityActivated(AbilityActivatedEvent e) { abilityTrayUI.AbilityActivated(e.abilityType, e.duration); }