1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Tweak a couple new ability descriptions.

This commit is contained in:
Lynn "Zhorken" Vaughan 2013-11-05 11:27:09 -05:00
parent 16feb5212e
commit 136359cf4a
2 changed files with 8 additions and 4 deletions
pokedex/db

View file

@ -1575,8 +1575,12 @@ class Pokemon(TableBase):
If the attack stats are about equal (within 5), returns None. The
value None, not the damage class called 'None'.
"""
phys = self.stat(u'attack')
spec = self.stat(u'special-attack')
try:
phys = self.stat(u'attack')
spec = self.stat(u'special-attack')
except KeyError:
return None
diff = phys.base_stat - spec.base_stat