diff options
author | VitaliyS <hetleven@yandex.ua> | 2015-04-20 14:40:18 +0300 |
---|---|---|
committer | VitaliyS <hetleven@yandex.ua> | 2015-04-20 14:40:18 +0300 |
commit | 96b6dbe60bc217919cf0e8171a0793103a46c58e (patch) | |
tree | 1593abfc3fc6eafcd34f7fb81d79dceec149c584 | |
parent | 54a4609b4f706906e897f0b4963cc22f0b3292c0 (diff) |
fix: wot.py
-rw-r--r-- | plugins/wot.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/wot.py b/plugins/wot.py index 887bb9b..db3147b 100644 --- a/plugins/wot.py +++ b/plugins/wot.py @@ -238,7 +238,9 @@ def wot(type, jid, nick, text): expWins = 0
for t in vdata[player_id]:
-
+ if not extv.has_key(t['tank_id']):
+ continue
+
tank_battle = t['all']['battles']
expDmg += tank_battle * extv[t['tank_id']]['expDamage']
|