public static Composite CreateApplyPoisons() { return(new PrioritySelector( new Decorator(r => Poisons.NeedLethalPosion() > 0, Spell.BuffSelf(Poisons.NeedLethalPosion())), new Decorator(r => Poisons.NeedNonLethalPosion() > 0, Spell.BuffSelf(Poisons.NeedNonLethalPosion())) )); }