More Gen 9 move effects

This commit is contained in:
Maruno17
2024-06-24 21:51:49 +01:00
parent 8e9417c3b7
commit ff2d8e5f55
21 changed files with 673 additions and 55 deletions

View File

@@ -234,7 +234,9 @@ Battle::AI::Handlers::MoveEffectAgainstTargetScore.add("TwoTurnAttack",
# user's first turn in battle, so it can't be used in response
# to this move charging up.
if target.has_move_with_function?("ProtectUserFromDamagingMovesKingsShield",
"ProtectUserFromDamagingMovesObstruct")
"ProtectUserFromDamagingMovesObstruct",
"ProtectUserFromDamagingMovesSilkTrap",
"ProtectUserFromDamagingMovesBurningBulwark")
has_protect_move = true
end
end

View File

@@ -800,7 +800,9 @@ Battle::AI::Handlers::MoveEffectAgainstTargetScore.add("DisableTargetStatusMoves
"ProtectUserFromDamagingMovesKingsShield", # King's Shield
"ProtectUserFromDamagingMovesObstruct", # Obstruct
"ProtectUserFromTargetingMovesSpikyShield", # Spiky Shield
"ProtectUserBanefulBunker" # Baneful Bunker
"ProtectUserBanefulBunker", # Baneful Bunker
"ProtectUserFromDamagingMovesSilkTrap", # Silk Trap
"ProtectUserFromDamagingMovesBurningBulwark" # Burning Bulwark
]
if target.check_for_move { |m| m.statusMove? && protection_moves.include?(m.function_code) }
score += 10