a = $scene.active_battler
for t in $scene.target_battlers
f=t.damage
f=0 unless t.damage.is_a?(Integer)
if t.element_rate(9)>=150
t.hp=t.last_hp+f;a.hp-=f
a.damage=t.damage;t.damage=-f if f!=0
else
a.hp+=f; a.damage=-f if f!=0
end
end
$scene.active_battler = a
拆成三段:1.@a = $scene.active_battler
2.for t in $scene.target_battlers
f=t.damage
f=0 unless t.damage.is_a?(Integer)
if t.element_rate(9)>=150
t.hp=t.last_hp+f;@a.hp-=f
@a.damage=t.damage;t.damage=-f if f!=0
else
@a.hp+=f; @a.damage=-f if f!=0
end
end
3.$scene.active_battler = @a