public SpellModification(CharacterSpellModification modification)
 {
     if (modification == null) throw new ArgumentNullException("modification");
     SpellId = modification.spellId;
     ModificationType = (CharacterSpellModificationTypeEnum) modification.modificationType;
     Value = new StatsRow(modification.value);
 }
 public SpellModification(CharacterSpellModification modification)
 {
     if (modification == null)
     {
         throw new ArgumentNullException("modification");
     }
     SpellId          = modification.spellId;
     ModificationType = (CharacterSpellModificationTypeEnum)modification.modificationType;
     Value            = new StatsRow(modification.value);
 }
 private bool SubCheck(bool greater, StatsRow stat, int limit)
 {
     if (greater && stat.Total < limit) return false;
     if (!greater && stat.Total > limit) return false;
     return true;
 }