mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2026-10-31 14:01:40 +00:00
Fixed issue where popover wasn't appearing when first pokemon didn't have a mega stone
This commit is contained in:
1 parent
2e1bb22aab
commit
b7230033bb
4 files changed
+10
No files matched your search
@@ -248,6 +248,7 @@ class @Pokemon extends Backbone.Model
|
||||
if @get('species') == "Rayquaza" and "Dragon Ascent" in @get('moves')
|
||||
return true
|
||||
item = @getItem()
|
||||
return false if typeof item == "undefined"
|
||||
return false if item.type != 'megastone'
|
||||
[ species, forme ] = item.mega
|
||||
return false if @get('species') != species || @get('forme') != 'default'
|
||||
|
||||
Reference in new issue
Block a user