mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-28 18:20:04 +00:00
Revamped Challenge Buttons completely, Added primal abilities, items and primals themselves
This commit is contained in:
@@ -118,11 +118,11 @@ class @BattleView extends Backbone.View
|
||||
$actions.html @action_template(locals)
|
||||
|
||||
pokemon = @model.getPokemon(@model.get('index'), 0)
|
||||
if pokemon.getItem()?.type == 'megastone'
|
||||
$button = $actions.find('.mega-evolve')
|
||||
$button = $actions.find('.mega-evolve')
|
||||
if pokemon.canMegaEvolve()
|
||||
$button.removeClass("hidden")
|
||||
if !pokemon.canMegaEvolve()
|
||||
$button.addClass('disabled')
|
||||
else
|
||||
$button.addClass('disabled')
|
||||
|
||||
$actions.find('.move.button').each (i, el) =>
|
||||
$this = $(el)
|
||||
|
||||
Reference in New Issue
Block a user