if $game_switches[193]
tx = @px + Sapphire_Core::Weapon_Range[@direction][0]
ty = @py + Sapphire_Core::Weapon_Range[@direction][1]
tx1 = @px + Sapphire_Core::Weapon_Range[@direction][0] * 2
ty1 = @py + Sapphire_Core::Weapon_Range[@direction][1] * 2
tx2 = @px + Sapphire_Core::Weapon_Range[@direction][0] * 3
ty2 = @py + Sapphire_Core::Weapon_Range[@direction][1] * 3
else
tx = @px + Sapphire_Core::Weapon_Range[@direction][0]
ty = @py + Sapphire_Core::Weapon_Range[@direction][1]
tx1 = @px + Sapphire_Core::Weapon_Range[@direction][0]
ty1 = @py + Sapphire_Core::Weapon_Range[@direction][1]
tx2 = @px + Sapphire_Core::Weapon_Range[@direction][0]
ty2 = @py + Sapphire_Core::Weapon_Range[@direction][1]
end
for char in $game_map.enemies
if char.pixel_range?(tx,ty) or char.pixel_range?(tx1,ty1) or char.pixel_range?(tx2,ty2)