diff options
| -rw-r--r-- | go/game/card.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/go/game/card.go b/go/game/card.go index f26c27c5..41fab76f 100644 --- a/go/game/card.go +++ b/go/game/card.go @@ -306,7 +306,16 @@ func (card *Card) getCanonicalValues(key string) []string { } func (card *Card) getEffects() []string { - return card.getCanonicalValues("effect") + effects := card.getCanonicalValues("effect") + for i, effect := range effects { + // Trim explanation from the effect + if effect[len(effect)-1:] != ")" { + continue + } + // Trim after " (..." + effects[i] = effect[0 : strings.IndexByte(effect, '(')-1] + } + return effects } func (card *Card) hasEffect(effect string) bool { |
