More AI bug fixes, more work on testing AI

This commit is contained in:
Maruno17
2023-06-18 23:36:06 +01:00
parent b5e37248b9
commit 539bc0fb50
5 changed files with 308 additions and 44 deletions

View File

@@ -453,7 +453,7 @@ class Battle::AI::AIMove
if user.item_active?
if user.item == :ZOOMLENS
if rough_priority(user) <= 0
mods[:accuracy_multiplier] *= 1.2 if target.faster_than?(user)
modifiers[:accuracy_multiplier] *= 1.2 if target.faster_than?(user)
end
else
Battle::ItemEffects.triggerAccuracyCalcFromUser(