private ConditionDescription() { conditions = new Condition[3]; conditions[0] = new CombinedCondition(subType, values); conditions[1] = new CombinedCondition(subType, damageTypes); conditions[2] = new CombinedCondition(subType, charTypes); }
private Effect ApplyConditions(Effect effect) { if(conditions.Length == 0) return effect; if(conditions.Length == 1) return new ConditionalEffect(effect, conditions[0]); Condition combined = new CombinedCondition(Combination.AllTrue, conditions); return new ConditionalEffect(effect, combined); }