mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 06:28:03 +08:00
Fix: limitation should not be None
This commit is contained in:
parent
95086091c4
commit
13b9c3a6a3
@ -30,7 +30,7 @@ class Ship:
|
||||
def satisfy_limitation(self, limitaion) -> bool:
|
||||
for key in self.__dict__:
|
||||
value = limitaion.get(key)
|
||||
if value is not None:
|
||||
if self.__dict__[key] is not None:
|
||||
# str and int should be exactly equal to
|
||||
if isinstance(value, (str, int)):
|
||||
if value == 'any':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user