public override void Apply(Strenght strenght) { _strenght = strenght; _powerIntegerSetter = new IntegerSetter(_power.GetValue(X)); _powerIntegerSetter.Initialize(ChangeTracker); _strenght.AddPowerModifier(_powerIntegerSetter); _toughnessIntegerSetter = new IntegerSetter(_tougness.GetValue(X)); _toughnessIntegerSetter.Initialize(ChangeTracker); _strenght.AddToughnessModifier(_toughnessIntegerSetter); }
public override void Apply(Strenght strenght) { _strenght = strenght; _powerIntegerSetter = new IntegerSetter(_power.GetValue(X)); _powerIntegerSetter.Initialize(ChangeTracker); _strenght.AddPowerModifier(_powerIntegerSetter); _toughnessIntegerSetter = new IntegerSetter(_tougness.GetValue(X)); _toughnessIntegerSetter.Initialize(ChangeTracker); _strenght.AddToughnessModifier(_toughnessIntegerSetter); }
public override void Apply(Strenght strenght) { _strenght = strenght; _powerIntegerIncrement = new IntegerIncrement(_power(OwningCard.Controller).GetValue(X)); _powerIntegerIncrement.Initialize(ChangeTracker); _strenght.AddPowerModifier(_powerIntegerIncrement); _toughnessIntegerIncrement = new IntegerIncrement(_toughness(OwningCard.Controller).GetValue(X)); _toughnessIntegerIncrement.Initialize(ChangeTracker); _strenght.AddToughnessModifier(_toughnessIntegerIncrement); }
public override void Apply(Strenght strenght) { _strenght = strenght; if (_modifyPower.HasValue) { _strenght.AddPowerModifier(_powerModifier); } if (_modifyToughness.HasValue) { _strenght.AddToughnessModifier(_toughnessModifier); } }
public override void Apply(Strenght strenght) { _strenght = strenght; _strenght.AddPowerModifier(_strenghtModifier); _strenght.AddToughnessModifier(_strenghtModifier); }
public override void Apply(Strenght strenght) { _strenght = strenght; _strenght.AddPowerModifier(_integerIncrement); _strenght.AddToughnessModifier(_integerIncrement); }
public override void Apply(Strenght strenght) { _strenght = strenght; _strenght.AddPowerModifier(_integerSetter); _strenght.AddToughnessModifier(_integerSetter); }