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:
parent
16feb5212e
commit
136359cf4a
2 changed files with 8 additions and 4 deletions
pokedex/db
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue