public void ApplyOnTarget(IDamageable target, AbstractAbility source) { if (IsAcceptableTargetType(target)) { expirable = new Expirable(target.GetMyOwner(), OnExpire); this.source = source; ApplyOnTarget(target); } }
public virtual void ApplyToUnit(Unit unit) { owner = unit; owner.modifiers.Add(this); expirable = new Expirable(owner.GetMyOwner(), OnExpire); }