mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
More Gen 9 move effects
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user