class Game_Action
#--------------------------------------------------------------------------
# ● 目标为敌人 # 再定义
#--------------------------------------------------------------------------
def targets_for_opponents
if item.for_random?
Array.new(item.number_of_targets) { opponents_unit.random_target }
elsif item.for_one?
num = 1 + (attack? ? subject.atk_times_add.to_i : 0)
if @target_index < 0
# 当攻击者处于被嘲讽状态并且攻击者是敌人时
if @subject.state?(P叔::BEICHAOFENG) and @subject.is_a?(Game_Enemy)
# 攻击目标为处于嘲讽状态的角色
$game_party.alive_members.each do |actor|
return [actor] * num if actor.state?(P叔::CHAOFENG) end
end
return [opponents_unit.random_target] * num
else
[opponents_unit.smooth_target(@target_index)] * num
end
else
opponents_unit.alive_members
end
end
end