BattleSim/client/views/battle.jade

10 lines
580 B
Plaintext
Raw Normal View History

2016-02-01 22:19:30 +00:00
- for (var i = 0; i < 2; i++)
- var pokemonClass = (i === yourIndex ? " bottom" : " top")
- var team = (i === yourIndex ? yourTeam : opponentTeam).get('pokemon')
- for (var j = 0, len = team.length; j < len; j++)
.pokemon.hidden(class = pokemonClass, data-team = i, data-slot = j)
if (team.at(j).attributes.species == 'Zoroark' || team.at(j).attributes.species == 'Zorua') && team.at(j).attributes.percent == 100
!= window.JST['battle_pokemon']({pokemon: team.at(team.length - 1)})
else
!= window.JST['battle_pokemon']({pokemon: team.at(j)})