1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-29 02:30:05 +00:00

Revamped Challenge Buttons completely, Added primal abilities, items and primals themselves

This commit is contained in:
Deukhoofd
2016-02-10 23:43:15 +01:00
parent 5fdcc4b285
commit 19558607f3
31 changed files with 902 additions and 273 deletions

View File

@@ -244,6 +244,8 @@ class @Pokemon extends Backbone.Model
canMegaEvolve: ->
# TODO: Refactor this to use getPossibleMegaForme()
# I didn't feel like making the change and testing it while implementing getPossibleMegaForme()
if @get('species') == "Rayquaza" and "Dragon Ascent" in @get('moves')
return true
item = @getItem()
return false if item.type != 'megastone'
[ species, forme ] = item.mega