mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 06:28:03 +08:00
Fix: Ignoring limitation don't work
This commit is contained in:
parent
c0f125bada
commit
dbb614e6ae
@ -30,7 +30,7 @@ class Ship:
|
||||
def satisfy_limitation(self, limitaion) -> bool:
|
||||
for key in self.__dict__:
|
||||
value = limitaion.get(key)
|
||||
if self.__dict__[key] is not None:
|
||||
if self.__dict__[key] is not None and value 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