Exemplo n.º 1
0
 private AdaptiveCostEffect(AdaptiveCostEffect prototype, IPlayable owner) : base(prototype, owner)
 {
     _operator = prototype._operator;
     //UpdateTrigger = prototype.UpdateTrigger;
     _predicate = prototype._predicate;
     _value     = prototype._value;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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;
 }
Exemplo n.º 5
0
 private AdaptiveCostEffect(AdaptiveCostEffect prototype, IPlayable owner) : base(prototype, owner)
 {
     _operator = prototype._operator;
 }