From 8eb5235f12cdce22338ab20e2b2df26c1f567f2a Mon Sep 17 00:00:00 2001 From: Eriks K Date: Fri, 26 Jun 2020 17:27:02 +0300 Subject: [PATCH] Deploy bombs in RWs bugfix --- erepublik/__init__.py | 2 +- erepublik/citizen.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/erepublik/__init__.py b/erepublik/__init__.py index de1f3af..16302e6 100644 --- a/erepublik/__init__.py +++ b/erepublik/__init__.py @@ -5,7 +5,7 @@ __author__ = """Eriks Karls""" __email__ = 'eriks@72.lv' __version__ = '0.20.1.4' -__commit_id__ = "ed96143" +__commit_id__ = "a873d22" from erepublik import classes, utils from erepublik.citizen import Citizen diff --git a/erepublik/citizen.py b/erepublik/citizen.py index 8daced3..0c21f6e 100644 --- a/erepublik/citizen.py +++ b/erepublik/citizen.py @@ -1701,6 +1701,8 @@ class CitizenMilitary(CitizenTravel): count = 1 has_traveled = False battle = self.all_battles.get(battle_id) + if battle.is_rw: + self._rw_choose_side(battle.id, battle.invader.id if inv_side else battle.defender.id) if inv_side: good_countries = [battle.invader.id] + battle.invader.deployed if self.details.current_country not in good_countries: