예제 #1
0
 public void ActivateEffect(ParameterScope thisScope, CardEffectActivationContextBase context)
 {
     foreach (var e in effects)
     {
         e.ActivateEffects(context, thisScope as CardBase);
     }
 }
예제 #2
0
 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}");
     }
 }
예제 #3
0
 public override void ActivateEffects(CardEffectActivationContextBase context, CardBase thisCard)
 {
     context.wasActionCancelled = true;
 }
예제 #4
0
 public override void ActivateEffects(CardEffectActivationContextBase context, CardBase cardBase)
 {
     cardBase.ChangeCounters(value);
 }
예제 #5
0
 public abstract void ActivateEffects(CardEffectActivationContextBase context, CardBase thisCard);