Some more code for Gen 9 abilities

This commit is contained in:
Maruno17
2024-08-21 22:11:01 +01:00
parent 6cc07d1c7a
commit 8841a534fe
6 changed files with 95 additions and 35 deletions

View File

@@ -202,6 +202,7 @@ Battle::AI::Handlers::MoveEffectAgainstTargetScore.add("SwitchOutTargetDamagingM
next score if target.wild?
# No score modification if the target can't be made to switch out
next score if target.has_active_ability?(:SUCTIONCUPS) && !target.being_mold_broken?
next score if target.has_active_ability?(:GUARDDOG) && !target.being_mold_broken?
next score if target.effects[PBEffects::Ingrain]
# No score modification if the target can't be replaced
can_switch = false