Fixes relating to added support of more Pokémon types

This commit is contained in:
Maruno17
2022-12-31 17:43:42 +00:00
parent 05b954e262
commit 4585533a4a
5 changed files with 20 additions and 73 deletions

View File

@@ -173,7 +173,7 @@ class Battle::AI
next if m.base_damage == 0
@battle.battlers[idxBattler].allOpposing.each do |b|
bTypes = b.pbTypes(true)
sum += Effectiveness.calculate(m.type, bTypes[0], bTypes[1], bTypes[2])
sum += Effectiveness.calculate(m.type, *bTypes)
end
end
if best == -1 || sum > bestSum