mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
More AI function code rewrites themed around stat changes
This commit is contained in:
@@ -429,6 +429,9 @@ class Battle::AI::AIMove
|
||||
target_battler = target.battler
|
||||
# OHKO special calculation
|
||||
if @ai.trainer.medium_skill?
|
||||
# TODO: This is insufficient for OHKO moves, as they should also ignore
|
||||
# effects like Telekinesis and Minimize but def rough_accuracy
|
||||
# treats them as applying to OHKO moves.
|
||||
case function
|
||||
when "OHKO", "OHKOHitsUndergroundTarget"
|
||||
modifiers[:base_accuracy] = self.accuracy + user.level - target.level
|
||||
|
||||
Reference in New Issue
Block a user