Quick fix to crashing issue
This commit is contained in:
parent
20e59467d1
commit
ac740143ee
|
@ -130,7 +130,10 @@ class @Pokemon
|
|||
@maxPPHash = {}
|
||||
if @moves?
|
||||
for move in @moves
|
||||
@ppHash[move.name] = @maxPPHash[move.name] = pp || (move.pp * 8/5)
|
||||
try
|
||||
@ppHash[move.name] = @maxPPHash[move.name] = pp || (move.pp * 8/5)
|
||||
catch error
|
||||
print error
|
||||
|
||||
setType: (newType) ->
|
||||
@types = newType
|
||||
|
|
Loading…
Reference in New Issue