From be398600608d5ec89ab8500f0a3b63577a22c8f2 Mon Sep 17 00:00:00 2001 From: Ben Cook Date: Tue, 15 Jan 2019 11:28:53 -0500 Subject: [PATCH] updated feature_selector to allow multiple choices of (ex) Fighting Style --- dungeonsheets/features/features.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dungeonsheets/features/features.py b/dungeonsheets/features/features.py index 5d42072..d4b3657 100644 --- a/dungeonsheets/features/features.py +++ b/dungeonsheets/features/features.py @@ -80,6 +80,9 @@ class FeatureSelector(Feature): new_feat.needs_implementation = True for selection in feature_choices: if selection.lower() in t.options: - new_feat = t.options[selection.lower()](owner=owner) + feat_class = t.options[selection.lower()] + if owner.has_feature(feat_class): + continue + new_feat = feat_class(owner=owner) new_feat.source = t.source return new_feat