mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Created and implemented GameData::Species
This commit is contained in:
@@ -863,8 +863,10 @@ BattleHandlers::DamageCalcTargetItem.add(:EVIOLITE,
|
||||
# means it also cares about the Pokémon's form. Some forms cannot
|
||||
# evolve even if the species generally can, and such forms are not
|
||||
# affected by Eviolite.
|
||||
evos = EvolutionHelper.evolutions(target.pokemon.fSpecies, true)
|
||||
mults[DEF_MULT] *= 1.5 if evos && evos.length>0
|
||||
evos = target.pokemon.species_data.evolutions
|
||||
if evos.any? { |e| e[1] != PBEvolution::None && !e[3] } # Not a "None", not a prevolution
|
||||
mults[DEF_MULT] *= 1.5 if evos && evos.length > 0
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user