if attacker.is_a?(Game_Actor)
for j in 0..$game_troop.enemies.size-1
if $game_troop.enemies[j].name == self.name
$misse = j
#@wait_count = 16
#@active_battler.white_flash = true
end
end
end
if attacker.is_a?(Game_Enemy)
for i in 0..$game_party.actors.size-1
if $game_party.actors.name == self.name
$misse = i
#@wait_count = 16
#@active_battler.white_flash = true
end
end
end
#===============
def screen_x
case self.index
when 0
if $misse == 0
return 60-40
else
return 60 + (@location * 40)
end
when 1
if $misse == 1
return 60-40
else
return 60 + (@location * 40)
end
when 2
return 60 + (@location * 40)
when 3
return 60 + (@location * 40)
when 4
return 60 + (@location * 40)
else
return 0
end
end
#----------