Fixed partner trainers not having Bag items, fixed Flame Burst AI bug, added AI for Wonder Guard + switching

This commit is contained in:
Maruno17
2023-11-20 21:29:47 +00:00
parent d10892af47
commit e0dcdef321
7 changed files with 37 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ Battle::AI::Handlers::MoveEffectAgainstTargetScore.copy("OHKO",
Battle::AI::Handlers::MoveEffectAgainstTargetScore.add("DamageTargetAlly",
proc { |score, move, user, target, ai, battle|
target.battler.allAllies.each do |b|
next if !b.near?(target.battler) || !b.battler.takesIndirectDamage?
next if !b.near?(target.battler) || !b.takesIndirectDamage?
score += 10
if ai.trainer.has_skill_flag?("HPAware")
score += 10 if b.hp <= b.totalhp / 16