Quickfix for forbidding Dictatorship/Liberation wars
This commit is contained in:
parent
32546505b9
commit
7be129a781
@ -1690,6 +1690,8 @@ class CitizenMilitary(CitizenTravel):
|
||||
for battle in self.sorted_battles(self.config.sort_battles_time):
|
||||
if not isinstance(battle, classes.Battle):
|
||||
continue
|
||||
if battle.is_dict_lib:
|
||||
continue
|
||||
battle_zone: Optional[classes.BattleDivision] = None
|
||||
for div in battle.div.values():
|
||||
if div.terrain == 0:
|
||||
@ -1841,6 +1843,9 @@ class CitizenMilitary(CitizenTravel):
|
||||
elif r_json.get("message") == "ZONE_INACTIVE":
|
||||
self.write_log("Wrong division!!")
|
||||
return 0, 10, 0
|
||||
elif r_json.get("message") == "NON_BELLIGERENT":
|
||||
self.write_log("Dictatorship/Liberation wars are not supported!")
|
||||
return 0, 10, 0
|
||||
elif r_json.get("message") in ["FIGHT_DISABLED", "DEPLOYMENT_MODE"]:
|
||||
self._post_main_profile_update('options',
|
||||
params='{"optionName":"enable_web_deploy","optionValue":"off"}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user