鞭尸的原因是因为没有定义角色是否存在的判断
[pre lang="ruby"]
#==以下更改内容===============
target_got = false
for a in $game_party.actors
if (@active_battler.state?(20) and a.state?(20))
@target_battlers.push(a)
###############################################################
target_got = true if a.hp>0 #加一个角色HP必须大于0就OK了 就不会鞭尸了
#多个状态合在一个判断里面你不会就分开写
# 如果在多个21号状态就另外加一个就好了
#建议把这套脚本弄到 Scene_Battle 4去
#仔细看下其实就是移动一下。
#################################################################
end
end
unless target_got
@target_battlers.push($game_party.smooth_target_actor(index)) #原有内容
end
#==以上更改内容===============
[/pre]