mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Rewrites of disabling move AI function codes, fixed various AI errors
This commit is contained in:
@@ -8,9 +8,9 @@ class Battle::AI::AIMove
|
||||
@ai = ai
|
||||
end
|
||||
|
||||
def set_up(move, ai_battler)
|
||||
def set_up(move)
|
||||
@move = move
|
||||
@ai_battler = ai_battler
|
||||
@move.calcType = rough_type
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
@@ -46,7 +46,7 @@ class Battle::AI::AIMove
|
||||
|
||||
# Returns whether this move targets multiple battlers.
|
||||
def targets_multiple_battlers?
|
||||
user_battler = @ai_battler.battler
|
||||
user_battler = @ai.user.battler
|
||||
target_data = @move.pbTarget(user_battler)
|
||||
return false if target_data.num_targets <= 1
|
||||
num_targets = 0
|
||||
|
||||
Reference in New Issue
Block a user