private AdaptiveCostEffect(AdaptiveCostEffect prototype, IPlayable owner) : base(prototype, owner) { _operator = prototype._operator; //UpdateTrigger = prototype.UpdateTrigger; _predicate = prototype._predicate; _value = prototype._value; }
public override void Activate(IPlayable owner, bool cloning = false) { if (!(owner.Zone is HandZone)) { return; } var instance = new AdaptiveCostEffect(this, owner); owner.AuraEffects.AdaptiveCostEffect = instance; owner.OngoingEffect = instance; owner.Game.Auras.Add(instance); }
public override void Activate(IPlayable owner, bool cloning = false) { if (!cloning && !(owner.Zone is HandZone)) { return; } var instance = new AdaptiveCostEffect(this, owner); owner.AuraEffects.AdaptiveCostEffect = instance; owner.OngoingEffect = instance; owner.Game.Auras.Add(instance); //if (UpdateTrigger.Type != TriggerType.NONE) //{ // owner.Game.TriggerManager.AddTrigger(UpdateTrigger.Type, instance.TriggeredUpdate); //} //else // _toBeUpdated = true; }
public CostManager(AdaptiveCostEffect adaptiveEffect) { _adaptiveCostEffect = adaptiveEffect; }
private AdaptiveCostEffect(AdaptiveCostEffect prototype, IPlayable owner) : base(prototype, owner) { _operator = prototype._operator; }