public override void Activate(IPlayable owner, bool cloning = false) { var instance = new AdaptiveEffect(this, owner); owner.Game.Auras.Add(instance); owner.OngoingEffect = instance; }
private AdaptiveEffect(AdaptiveEffect prototype, IPlayable owner) : base(prototype, owner) { if (prototype._isSwitching) { _isSwitching = true; _tags = prototype._tags; _lastValues = new int[_tags.Length]; Array.Copy(prototype._lastValues, _lastValues, _lastValues.Length); Condition = prototype.Condition; return; } _tag = prototype._tag; _operator = prototype._operator; _lastValue = prototype._lastValue; }
private AdaptiveEffect(AdaptiveEffect prototype, IPlayable owner) : base(prototype, owner) { _tag = prototype._tag; _operator = prototype._operator; _lastValue = prototype._lastValue; }