mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Gotta git gud
This commit is contained in:
@@ -132,7 +132,7 @@ self.checkMoveset = (Generations, pokemon, generation, moves) ->
|
||||
looper = loopLearnsets.bind(null, Generations, pokemon, generation)
|
||||
pokemonSpecies = pokemon.species
|
||||
pokemonForme = pokemon.forme || "default"
|
||||
pokemonLevel = (pokemon.level || 100)
|
||||
pokemonLevel = (pokemon.level || generation.maxLevel)
|
||||
{FormeData} = Generations[getGenerationFromInt(generation)]
|
||||
forme = FormeData[pokemonSpecies][pokemonForme]
|
||||
|
||||
@@ -206,7 +206,7 @@ self.checkMoveset = (Generations, pokemon, generation, moves) ->
|
||||
# tutors, machines, Sketch, or pre-evolutions.
|
||||
checkMove = (looper, pokemon, move) ->
|
||||
{level} = pokemon
|
||||
level ||= 100
|
||||
level ||= 120
|
||||
|
||||
checksOut = looper (learnset) ->
|
||||
# Check level-up, TM/HM, and tutors.
|
||||
|
||||
@@ -81,6 +81,10 @@ self.determineTier = (genData, pokemonArray) ->
|
||||
if species == megaSpecies
|
||||
forme = megaForme
|
||||
|
||||
# Handle Mega Rayquaza
|
||||
if species is "Rayquaza" and pokemon.moves? and "Dragon Ascent" in pokemon.moves
|
||||
forme = "mega"
|
||||
|
||||
# Get PBV of the Pokemon's forme
|
||||
tier = speciesData?[forme]?.tier[0] || 'Unsorted'
|
||||
tierdata = actualtiers[tier]
|
||||
|
||||
Reference in New Issue
Block a user