minor bugfix

This commit is contained in:
Eriks K 2020-05-15 09:52:49 +03:00
parent 6642839af5
commit 7aa353bc06
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
__author__ = """Eriks Karls"""
__email__ = 'eriks@72.lv'
__version__ = '0.20.0'
__commit_id__ = "c216d98"
__commit_id__ = "6642839"
from erepublik import classes, utils
from erepublik.citizen import Citizen

View File

@ -1698,7 +1698,7 @@ class CitizenMilitary(CitizenTravel):
def get_ground_hit_dmg_value(self, rang: int = None, strength: float = None, elite: bool = None, ne: bool = False,
booster_50: bool = False, booster_100: bool = False, tp: bool = True) -> Decimal:
if not rang or strength or elite is None:
if not rang or not strength or elite is None:
r = self._get_main_citizen_profile_json(self.details.citizen_id).json()
if not rang:
rang = r['military']['militaryData']['ground']['rankNumber']