Deploy bombs in RWs bugfix

This commit is contained in:
Eriks K 2020-06-26 17:27:02 +03:00
parent a873d223c1
commit 8eb5235f12
2 changed files with 3 additions and 1 deletions

View File

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

View File

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