本帖最后由 moy 于 2014-6-10 13:18 编辑
class Game_Action #-------------------------------------------------------------------------- # ● 目标为敌人 #-------------------------------------------------------------------------- def targets_for_opponents if item.for_random? #--剔除重复目标-- targets = Array.new(item.number_of_targets) { opponents_unit.random_target } targets.uniq #-------------- elsif item.for_one? num = 1 + (attack? ? subject.atk_times_add.to_i : 0) if @target_index < 0 [opponents_unit.random_target] * num else [opponents_unit.smooth_target(@target_index)] * num end else opponents_unit.alive_members end end end
class Game_Action
#--------------------------------------------------------------------------
# ● 目标为敌人
#--------------------------------------------------------------------------
def targets_for_opponents
if item.for_random?
#--剔除重复目标--
targets = Array.new(item.number_of_targets) { opponents_unit.random_target }
targets.uniq
#--------------
elsif item.for_one?
num = 1 + (attack? ? subject.atk_times_add.to_i : 0)
if @target_index < 0
[opponents_unit.random_target] * num
else
[opponents_unit.smooth_target(@target_index)] * num
end
else
opponents_unit.alive_members
end
end
end
测了下没啥问题,如果你用了别的脚本导致冲突,就直接找到- Array.new(item.number_of_targets) { opponents_unit.random_target }
复制代码 这句,把他改成我框起来的那两句。正常使用就直接丢外挂里吧。 |