updated feature_selector to allow multiple choices of (ex) Fighting Style

This commit is contained in:
Ben Cook
2019-01-15 11:28:53 -05:00
parent a384fe3a27
commit be39860060
+4 -1
View File
@@ -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