mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-02-02 19:31:03 +00:00
AI now keeps their last defined Pokémon for last, tweaks to some battle effects based on mechanics generation
This commit is contained in:
@@ -519,7 +519,8 @@ BattleHandlers::AbilityOnStatLoss.add(:DEFIANT,
|
||||
|
||||
BattleHandlers::PriorityChangeAbility.add(:GALEWINGS,
|
||||
proc { |ability,battler,move,pri|
|
||||
next pri+1 if battler.hp==battler.totalhp && move.type == :FLYING
|
||||
next pri + 1 if (Settings::MECHANICS_GENERATION <= 6 || battler.hp == battler.totalhp) &&
|
||||
move.type == :FLYING
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user