mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Improved AI code for weather-causing moves, added AI getting flags from trainer types, added Legendary/Mythical flags to pokemon.txt, added Setting to make wild Legendary/Mythical Pokémon smarter
This commit is contained in:
@@ -105,7 +105,7 @@ class Battle::AI
|
||||
end
|
||||
# Spikes
|
||||
if battler_side.effects[PBEffects::Spikes] > 0 && !pkmn.hasAbility?(:MAGICGUARD) &&
|
||||
!battler.airborne? && !pkmn.hasItem?(:HEAVYDUTYBOOTS)
|
||||
!pkmn.hasItem?(:HEAVYDUTYBOOTS)
|
||||
if @battle.field.effects[PBEffects::Gravity] > 0 || pkmn.hasItem?(:IRONBALL) ||
|
||||
!(pkmn.hasType?(:FLYING) || pkmn.hasItem?(:LEVITATE) || pkmn.hasItem?(:AIRBALLOON))
|
||||
spikes_div = [8, 6, 4][battler_side.effects[PBEffects::Spikes] - 1]
|
||||
|
||||
Reference in New Issue
Block a user