Skip to content

Commit

Permalink
Correcciones IA movs Paldea y Hisui
Browse files Browse the repository at this point in the history
  • Loading branch information
dpertierra committed Feb 11, 2025
1 parent d517e79 commit 0d28336
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -833,12 +833,12 @@
next false
}
)
Battle::AI::Handlers::MoveEffectScore.add("DamageTargetAddSpikesToFoeSide",
proc { |score, move, user, ai, battle|
Battle::AI::Handlers::MoveEffectAgainstTargetScore.add("DamageTargetAddSpikesToFoeSide",
proc { |score, move, user, target, ai, battle|
score += 15
if Settings::MECHANICS_GENERATION >= 9
spike_score = Battle::AI::Handlers.apply_move_effect_against_target_score("AddSpikesToFoeSide",
0, move, user, b, ai, battle)
0, move, user, target, ai, battle)
if spike_score != Battle::AI::MOVE_USELESS_SCORE
score += spike_score if spike_score != Battle::AI::MOVE_USELESS_SCORE
end
Expand Down

0 comments on commit 0d28336

Please sign in to comment.