/// <summary> /// Remove this modifier to the given attribute. /// </summary> /// <param name="source">source</param> /// <param name="attribute">attribute</param> /// <returns>success</returns> public bool RemoveModifier(IStatModifierSource source, StatAttribute attribute) { return(attribute != null && attribute.RemoveModifier(this, source)); }
/// <summary> /// Apply this modifier to the given attribute. /// </summary> /// <param name="source">source</param> /// <param name="attribute">attribute</param> /// <returns>success</returns> public bool ApplyModifier(IStatModifierSource source, StatAttribute attribute) { return(attribute != null && attribute.AddModifier(this, source)); }