diff options
author | emkael <emkael@tlen.pl> | 2019-07-08 22:43:30 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-08 22:43:30 +0200 |
commit | 6a7c6d59fd21872c5a59ce3aada4bf8bc2c4c6c2 (patch) | |
tree | 4932af2beb84a3e545b349f38f117c253960328b | |
parent | 84d22b207b11981e6d685e09acb04c4b58c5ba93 (diff) |
Fixing C#->Python porting bug
-rw-r--r-- | bcdd/PBNBoard.py | 2 |
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 = [] |