public EffectFormBuilder SetCounterForm(CounterForm.CounterType type, int automaticSpellLevel, int checkBaseDC, bool addSpellCastingAbility, bool addProficiencyBonus) { effectForm.FormType = EffectForm.EffectFormType.Counter; CounterForm counterForm = new CounterForm(); counterForm.SetType(type); counterForm.SetAutomaticSpellLevel(automaticSpellLevel); counterForm.SetCheckBaseDC(checkBaseDC); counterForm.SetAddSpellCastingAbility(addSpellCastingAbility); counterForm.SetAddProficiencyBonus(addProficiencyBonus); effectForm.SetCounterForm(counterForm); return(this); }
public static T SetType <T>(this T entity, CounterForm.CounterType value) where T : CounterForm { entity.SetField("type", value); return(entity); }