From 6a7c6d59fd21872c5a59ce3aada4bf8bc2c4c6c2 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 8 Jul 2019 22:43:30 +0200 Subject: Fixing C#->Python porting bug --- bcdd/PBNBoard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- cgit v1.2.3