Deploy bombs in RWs bugfix
This commit is contained in:
parent
a873d223c1
commit
8eb5235f12
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user