public void ActivateEffect(ParameterScope thisScope, CardEffectActivationContextBase context) { foreach (var e in effects) { e.ActivateEffects(context, thisScope as CardBase); } }
public override void ActivateEffects(CardEffectActivationContextBase context, CardBase thisCard) { if (context is TContext t) { ActivateEffects(t, thisCard as TCard); } else { throw new Exception($"DerivedCardEffect expected a context of type {typeof(TContext).Name} but received type {context.GetType().Name}"); } }
public override void ActivateEffects(CardEffectActivationContextBase context, CardBase thisCard) { context.wasActionCancelled = true; }
public override void ActivateEffects(CardEffectActivationContextBase context, CardBase cardBase) { cardBase.ChangeCounters(value); }
public abstract void ActivateEffects(CardEffectActivationContextBase context, CardBase thisCard);