Quick fix to crashing issue
This commit is contained in:
parent
20e59467d1
commit
ac740143ee
|
@ -130,7 +130,10 @@ class @Pokemon
|
||||||
@maxPPHash = {}
|
@maxPPHash = {}
|
||||||
if @moves?
|
if @moves?
|
||||||
for move in @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) ->
|
setType: (newType) ->
|
||||||
@types = newType
|
@types = newType
|
||||||
|
|
Loading…
Reference in New Issue