08-03-2014, 11:35 PM
The problem wasn't that the actor attempted to escape, but was attempting to attack itself. The system that made the character move in this manner attempted to move the battler 16 pixels in a given location to a target, but unfortunately, it WAS the target. As such, you had a sliding effect.
Paste it right below the original battlesystem and above the add-ons, and you can rest in peaches. :)))
Code:
#==============================================================================
# ** Atoa Custom Battle System Repair Patch: Self Target Movement Fix
# by DerVVulfman
# August 3, 2014
# RGSS
#
#------------------------------------------------------------------------------
# This patch prevents an accidental forced '16 pixel slide' when a battler
# has itself targeted and is attempting to move-to-target.
#
# Merely paste this script below the "ACBS | Scene Battle 4" script, the last
# script in his battlesystem. No other known add-ons alter the method being
# repaired, so no conflicts should appear.
#
# Thanks to Djigit for noticing an issue with the ACBS system by Victor Sant.
#==============================================================================
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
# This class deals with battlers. It's used as a superclass for the Game_Actor
# and Game_Enemy classes.
#==============================================================================
class Game_Battler
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias dvv_repair_game_battler_action_one_target action_one_target
#--------------------------------------------------------------------------
# * Set move to target
#--------------------------------------------------------------------------
def action_one_target
@target_battlers.flatten! # Change into one single array list
target = @target_battlers[0] # Obtain 1st battler in array
return if target.nil? # Exit method if no target
return if target == self # Exit method if target is self
# Perform the original call
dvv_repair_game_battler_action_one_target
end
end
Paste it right below the original battlesystem and above the add-ons, and you can rest in peaches. :)))