mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Fix: limitation should not be None
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user