1
0
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:
Horizon101011
2022-10-10 23:27:20 +08:00
parent 95086091c4
commit 13b9c3a6a3

View File

@@ -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':