summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-08 22:43:30 +0200
committeremkael <emkael@tlen.pl>2019-07-08 22:43:30 +0200
commit6a7c6d59fd21872c5a59ce3aada4bf8bc2c4c6c2 (patch)
tree4932af2beb84a3e545b349f38f117c253960328b
parent84d22b207b11981e6d685e09acb04c4b58c5ba93 (diff)
Fixing C#->Python porting bug
-rw-r--r--bcdd/PBNBoard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcdd/PBNBoard.py b/bcdd/PBNBoard.py
index 3dbb751..4d8f72f 100644
--- a/bcdd/PBNBoard.py
+++ b/bcdd/PBNBoard.py
@@ -74,7 +74,7 @@ class PBNBoard(object):
def validate_ability(self, ability):
matches = self.ability_pattern.match(ability)
- if len(match) != 4:
+ if not matches:
self._has_ability = False
raise DDTableInvalidException('Invalid Ability line: ' + ability)
players = []