public CardTemplate ContinuousEffect(Action <ContinuousEffectParameters> set) { _init.Add(cp => { var p = new StaticAbilityParameters { EnabledInAllZones = false }; p.Modifier(() => { var cep = new ContinuousEffectParameters(); set(cep); var effect = new ContinuousEffect(cep); return(new AddContiniousEffect(effect)); }); cp.StaticAbilities.Add(new StaticAbility(p)); }); return(this); }
public void Add(ContinuousEffect effect) { _continiousEffects.Add(effect); }
public void Remove(ContinuousEffect effect) { _continiousEffects.Remove(effect); effect.Deactivate(); }
public Context(ContinuousEffect effect, Game game) { _effect = effect; _game = game; }